File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 2121
2222permissions :
2323 id-token : write
24- contents : read
24+ contents : write
2525 packages : write
2626
2727
@@ -211,3 +211,31 @@ jobs:
211211 git add ${{ env.COMPONENT }}
212212 git commit -a -m "chore(bump): [CI] [DEV] bump ${{ env.COMPONENT }} to $VERSION"
213213 git push origin master
214+
215+
216+ static-analysis :
217+ name : Static Analysis
218+ runs-on :
219+ # - self-hosted
220+ # - large
221+ - ubuntu-22.04
222+
223+ steps :
224+ - uses : actions/checkout@v4
225+
226+ - name : Create SBOM
227+ uses : anchore/sbom-action@v0
228+ with :
229+ upload-artifact-retention : 1
230+ format : cyclonedx-json
231+ output-file : package-sbom.cyclonedx.json
232+
233+ - name : Configure AWS credentials
234+ uses : aws-actions/configure-aws-credentials@v4
235+ with :
236+ role-to-assume : ${{ secrets.AWS_S3_SBOMS_ROLE_ARN }}
237+ aws-region : ${{ env.AWS_S3_REGION }}
238+
239+ - name : Copy SBOM to S3
240+ run : |
241+ aws s3 cp package-sbom.cyclonedx.json s3://repos-sboms/${{ github.event.repository.name }}/package-sbom.cyclonedx.json
You can’t perform that action at this time.
0 commit comments