Skip to content

Commit

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

* Update .github/workflows/test-reporter.yml
reakaleek authored Mar 12, 2024

Verified

This commit was signed with the committer’s verified signature.
radoering Randy Döring
1 parent 8ce0efe commit 2e15872
Showing 4 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/addToAPMProject.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@ on:
issues:
types:
- opened
permissions:
contents: read

jobs:
add_to_project:
runs-on: ubuntu-latest
3 changes: 3 additions & 0 deletions .github/workflows/addToDocsProject.yml
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@ on:
issues:
types:
- labeled
permissions:
contents: read

jobs:
add_to_project:
runs-on: ubuntu-latest
3 changes: 3 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -7,6 +7,9 @@ on:
env:
MY_GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}

permissions:
contents: read

jobs:
triage:
runs-on: ubuntu-latest
5 changes: 5 additions & 0 deletions .github/workflows/test-reporter.yml
Original file line number Diff line number Diff line change
@@ -8,6 +8,11 @@ on:
types:
- completed

permissions:
contents: read
actions: read
checks: write

jobs:
report:
runs-on: ubuntu-latest

0 comments on commit 2e15872

Please sign in to comment.