Skip to content

Commit

Permalink
fix(actions): static analysis on pre
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Vieira committed Mar 25, 2024
1 parent 0993dfe commit fa62a74
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/prereleased.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:

permissions:
id-token: write
contents: read
contents: write
packages: write


Expand Down Expand Up @@ -211,3 +211,31 @@ jobs:
git add ${{ env.COMPONENT }}
git commit -a -m "chore(bump): [CI] [DEV] bump ${{ env.COMPONENT }} to $VERSION"
git push origin master
static-analysis:
name: Static Analysis
runs-on:
#- self-hosted
#- large
- ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Create SBOM
uses: anchore/sbom-action@v0
with:
upload-artifact-retention: 1
format: cyclonedx-json
output-file: package-sbom.cyclonedx.json

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_S3_SBOMS_ROLE_ARN }}
aws-region: ${{ env.AWS_S3_REGION }}

- name: Copy SBOM to S3
run: |
aws s3 cp package-sbom.cyclonedx.json s3://repos-sboms/${{ github.event.repository.name }}/package-sbom.cyclonedx.json

0 comments on commit fa62a74

Please sign in to comment.