Skip to content

Commit 09e3576

Browse files
committed
ci: document security job permissions for zizmor
1 parent ccb8fb2 commit 09e3576

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
if: ${{ !github.event.repository.private }}
2323
runs-on: ubuntu-latest
2424
permissions:
25-
contents: read
26-
security-events: write
25+
contents: read # Check out the source for analysis.
26+
security-events: write # Upload CodeQL findings to code scanning.
2727
strategy:
2828
fail-fast: false
2929
matrix:

‎.github/workflows/zizmor.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ concurrency:
1515

1616
jobs:
1717
zizmor:
18+
name: Audit GitHub Actions
1819
runs-on: ubuntu-latest
1920
permissions:
20-
contents: read
21-
actions: read
22-
security-events: write
21+
contents: read # Inspect the checked-out workflow files.
22+
actions: read # Inspect referenced actions during online audits.
23+
security-events: write # Upload findings when public code scanning is available.
2324
steps:
2425
- name: Checkout
2526
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

0 commit comments

Comments
 (0)