Skip to content

Commit

Permalink
fix: use right token permissions (kedacore#6430)
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Turrado <[email protected]>
  • Loading branch information
JorTurFer authored Dec 17, 2024
1 parent 87cb45f commit 55bd5bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ jobs:

trivy-scan:
needs: build
permissions:
contents: read
security-events: write
uses: kedacore/keda/.github/workflows/template-trivy-scan.yml@main
with:
runs-on: ubuntu-latest
Expand All @@ -102,6 +105,9 @@ jobs:

trivy-scan-metrics-server:
needs: build
permissions:
contents: read
security-events: write
strategy:
matrix:
runner: [ARM64, ubuntu-latest]
Expand All @@ -116,6 +122,9 @@ jobs:

trivy-scan-keda:
needs: build
permissions:
contents: read
security-events: write
strategy:
matrix:
runner: [ARM64, ubuntu-latest]
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/template-smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
smoke-tests:
name: Validate k8s-${{ inputs.kubernetesVersion }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/template-trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ on:
required: true
type: boolean

permissions:
contents: read
security-events: write

jobs:
trivy-scan:
name: Trivy - ${{ inputs.runs-on }} - ${{ inputs.scan-type }} ${{ inputs.image-ref }}
Expand Down

0 comments on commit 55bd5bf

Please sign in to comment.