mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-09 17:27:28 +00:00
Merge pull request #3232 from eddie-knight/fix/workflow-permissions
Additional workflow permissions tweaks
This commit is contained in:
commit
6f6c097980
3 changed files with 6 additions and 8 deletions
6
.github/workflows/release-manifests.yml
vendored
6
.github/workflows/release-manifests.yml
vendored
|
|
@ -8,11 +8,11 @@ permissions:
|
|||
contents: read
|
||||
|
||||
jobs:
|
||||
permissions:
|
||||
id-token: write # needed for keyless signing
|
||||
packages: write # needed for ghcr access
|
||||
build-push:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write # needed for keyless signing
|
||||
packages: write # needed for ghcr access
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Kustomize
|
||||
|
|
|
|||
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
|
@ -5,9 +5,7 @@ on:
|
|||
tags: [ 'v*' ]
|
||||
|
||||
permissions:
|
||||
contents: write # needed to write releases
|
||||
id-token: write # needed for keyless signing
|
||||
packages: write # needed for ghcr access
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
|
|
|
|||
4
.github/workflows/scan.yaml
vendored
4
.github/workflows/scan.yaml
vendored
|
|
@ -51,10 +51,10 @@ jobs:
|
|||
sarif_file: snyk.sarif
|
||||
|
||||
codeql:
|
||||
permissions:
|
||||
security-events: write # for codeQL to write security events
|
||||
name: CodeQL
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
security-events: write # for codeQL to write security events
|
||||
if: github.actor != 'dependabot[bot]'
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
|
|||
Loading…
Reference in a new issue