Merge pull request #58 from nicholas-fedor/57-fix-code-scanning-alert---workflow-does-not-contain-permissions

Add permissions
This commit is contained in:
Nick Fedor 2025-02-03 22:34:05 -07:00 committed by GitHub
commit 093429b95d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -5,6 +5,10 @@ on:
types: types:
- closed - closed
permissions:
actions: write
contents: read
jobs: jobs:
cleanup: cleanup:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View file

@ -7,6 +7,12 @@ on:
- "v[0-9]+.[0-9]+.[0-9]+" - "v[0-9]+.[0-9]+.[0-9]+"
- "**/v[0-9]+.[0-9]+.[0-9]+" - "**/v[0-9]+.[0-9]+.[0-9]+"
permissions:
contents: read # Needed for all jobs to checkout the repository
packages: write # For the build job to push to GHCR
attestations: write # For managing attestations in the build job
id-token: write # For OIDC token usage in the build and potentially in the renew-docs job
jobs: jobs:
lint: lint:
name: Lint name: Lint