Skip to content

Commit

Permalink
security: add permissions block to workflows (#3531)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Mar 12, 2024
1 parent c5ed2e1 commit f45c746
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/addToProject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
issues:
types:
- opened, milestoned
permissions:
contents: read

jobs:
add_to_project:
if: github.event.issue && github.event.issue.milestone
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
pull_request_target:
types: [opened]

permissions:
contents: read
issues: write
pull-requests: write

jobs:
triage:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
default: false
type: boolean

permissions:
contents: read

jobs:
deploy:
name: Deploy
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test-reporter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
report:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f45c746

Please sign in to comment.