Skip to content

Commit fa62a74

Browse files
author
Andre Vieira
committed
fix(actions): static analysis on pre
1 parent 0993dfe commit fa62a74

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/prereleased.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ env:
2121

2222
permissions:
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

0 commit comments

Comments
 (0)