Skip to content

Commit

Permalink
Restrict all GH workflows top-level token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Dec 9, 2024
1 parent da58a11 commit 2aa26d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions: read-all

jobs:
security-analysis:
permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

permissions: read-all

jobs:
test:
permissions:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/www.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: read-all

jobs:
deploy:
permissions:
Expand Down

0 comments on commit 2aa26d7

Please sign in to comment.