Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/security-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,15 @@ jobs:
name: CodeQL (${{ matrix.language }})
if: ${{ inputs.languages != '' && inputs.languages != '[]' }}
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
# `actions: read` is required by github/codeql-action's telemetry —
# init/analyze each call `GET /repos/{owner}/{repo}/actions/runs/{run_id}`.
# Without the scope every step ends in
# ##[error]Resource not accessible by integration
# and the job fails. Read-only; grants no write capability.
actions: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -184,6 +193,12 @@ jobs:
permissions:
contents: read
security-events: write
# Required by github/codeql-action/upload-sarif's telemetry call
# to `GET /repos/{owner}/{repo}/actions/runs/{run_id}`. Without
# this the upload step ends in
# ##[error]Resource not accessible by integration
# and fails the job. Read-only; grants no write capability.
actions: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2
Expand Down
Loading