Skip to content

Commit

Permalink
Restrict permissions of GITHUB_TOKEN
Browse files Browse the repository at this point in the history
This changes the default permissions for the GITHUB_TOKEN used in our
GitHub Actions configuration to the minimum required to successfully
run.
  • Loading branch information
mcdonnnj committed Oct 28, 2024
1 parent f0e55b3 commit e93d92a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ env:
jobs:
diagnostics:
name: Run diagnostics
permissions: {}
runs-on: ubuntu-latest
steps:
# Note that a duplicate of this step must be added at the top of
Expand All @@ -48,6 +49,8 @@ jobs:
lint:
needs:
- diagnostics
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- id: harden-runner
Expand Down

0 comments on commit e93d92a

Please sign in to comment.