Skip to content

Commit

Permalink
security: add permissions block to workflows (#101)
Browse files Browse the repository at this point in the history
* security: add permissions block to workflows

* Add permissions
  • Loading branch information
reakaleek committed Mar 12, 2024
1 parent c23b030 commit 0ea6f96
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/addToAPMProject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
issues:
types:
- opened
permissions:
contents: read

jobs:
add_to_project:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ on:
env:
AGENT_TESTS: java nodejs

permissions:
contents: read

jobs:
integration-test:
runs-on: ubuntu-latest
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
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 0ea6f96

Please sign in to comment.