Skip to content

Commit

Permalink
Move permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciabad authored Oct 18, 2023
1 parent bc7f71f commit 04f1f9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: CI
on: push

permissions:
contents: write

jobs:
lintfix:
name: Lint and fix
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 🚀 Checkout
uses: actions/checkout@v3
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: Tests

on:
deployment_status:

permissions:
contents: read
pages: write
id-token: write
on: deployment_status

jobs:
tests:
Expand Down Expand Up @@ -72,6 +66,10 @@ jobs:
runs-on: ubuntu-latest
needs: tests
if: always()
permissions:
contents: read
pages: write
id-token: write
steps:
- name: 📥 Get artifact
uses: actions/download-artifact@v2
Expand Down

0 comments on commit 04f1f9d

Please sign in to comment.