File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515permissions :
1616 id-token : write
1717 contents : write
18+ packages : read
1819
1920jobs :
2021 metadata :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments