Skip to content

Commit 96dce1d

Browse files
committed
CCM-12614: add github package manager authentication
1 parent 43f0214 commit 96dce1d

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/cicd-1-pull-request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
permissions:
1616
id-token: write
1717
contents: write
18+
packages: read
1819

1920
jobs:
2021
metadata:

.github/workflows/stage-1-commit.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,12 @@ jobs:
152152
uses: ./.github/actions/lint-terraform
153153
trivy-iac:
154154
name: "Trivy IaC Scan"
155-
permissions:
156-
contents: read
157155
runs-on: ubuntu-latest
158156
timeout-minutes: 10
159157
needs: detect-terraform-changes
160158
if: needs.detect-terraform-changes.outputs.terraform_changed == 'true'
159+
env:
160+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161161
steps:
162162
- name: "Checkout code"
163163
uses: actions/checkout@v4
@@ -170,10 +170,10 @@ jobs:
170170
trivy-package:
171171
if: ${{ !inputs.skip_trivy_package }}
172172
name: "Trivy Package Scan"
173-
permissions:
174-
contents: read
175173
runs-on: ubuntu-latest
176174
timeout-minutes: 10
175+
env:
176+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177177
steps:
178178
- name: "Checkout code"
179179
uses: actions/checkout@v4

0 commit comments

Comments
 (0)