Skip to content

Commit

Permalink
security: add permissions block to workflows (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek authored Mar 26, 2024
1 parent cb57272 commit 5ead781
Show file tree
Hide file tree
Showing 3 changed files with 11 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 @@ -8,6 +8,9 @@ on:
env:
MY_GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}

permissions:
contents: read

jobs:
assign_one_project:
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
3 changes: 3 additions & 0 deletions .github/workflows/run-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
create-test-matrix:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5ead781

Please sign in to comment.