Skip to content

Commit

Permalink
Merge pull request #191 from cisagov/improvement/github_tokenn_polp
Browse files Browse the repository at this point in the history
Explicitly define permissions of `GITHUB_TOKEN` in our GitHub Actions workflows
  • Loading branch information
mcdonnnj authored Oct 30, 2024
2 parents ff221ba + 8a77a8b commit 971602a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ env:
jobs:
diagnostics:
name: Run diagnostics
# This job does not need any permissions
permissions: {}
runs-on: ubuntu-latest
steps:
# Note that a duplicate of this step must be added at the top of
Expand All @@ -54,6 +56,9 @@ jobs:
lint:
needs:
- diagnostics
permissions:
# actions/checkout needs this to fetch code
contents: read
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ permissions:
jobs:
diagnostics:
name: Run diagnostics
# This job does not need any permissions
permissions: {}
runs-on: ubuntu-latest
steps:
# Note that a duplicate of this step must be added at the top of
Expand Down

0 comments on commit 971602a

Please sign in to comment.