Skip to content

Commit 0309be7

Browse files
author
Andre Vieira
committed
fix(actions): static analysis on pre
1 parent 30ccc95 commit 0309be7

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

.github/workflows/prereleased.yaml

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

2727
permissions:
2828
id-token: write
29-
contents: read
29+
contents: write
3030
packages: read
3131

3232

@@ -167,3 +167,31 @@ jobs:
167167
git config user.name "Azory YData Bot"
168168
git commit -a -m "chore(bump): [CI] [DEV] bump ${{ env.COMPONENT }} package ${{ matrix.package }} to $VERSION"
169169
git push origin master
170+
171+
172+
static-analysis:
173+
name: Static Analysis
174+
runs-on:
175+
#- self-hosted
176+
#- large
177+
- ubuntu-22.04
178+
179+
steps:
180+
- uses: actions/checkout@v4
181+
182+
- name: Create SBOM
183+
uses: anchore/sbom-action@v0
184+
with:
185+
upload-artifact-retention: 1
186+
format: cyclonedx-json
187+
output-file: package-sbom.cyclonedx.json
188+
189+
- name: Configure AWS credentials
190+
uses: aws-actions/configure-aws-credentials@v4
191+
with:
192+
role-to-assume: ${{ secrets.AWS_S3_SBOMS_ROLE_ARN }}
193+
aws-region: ${{ env.AWS_S3_REGION }}
194+
195+
- name: Copy SBOM to S3
196+
run: |
197+
aws s3 cp package-sbom.cyclonedx.json s3://repos-sboms/${{ github.event.repository.name }}/package-sbom.cyclonedx.json

0 commit comments

Comments
 (0)