Skip to content

Commit

Permalink
Limit GITHUB_TOKEN permissions (#54)
Browse files Browse the repository at this point in the history
Signed-off-by: Jed Salazar <[email protected]>
  • Loading branch information
jedsalazar authored Mar 22, 2024
1 parent 6fb3b7b commit 688926a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/buildifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit

- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: buildifier
run: bazel run --enable_bzlmod //.github/workflows:buildifier.check

0 comments on commit 688926a

Please sign in to comment.