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 22edd61 commit 82d28fc
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion .github/workflows/prereleased.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ env:

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


Expand Down Expand Up @@ -204,3 +204,31 @@ jobs:
git config user.name "Azory YData Bot"
git commit -a -m "chore(bump): [CI] [DEV] bump ${{ env.COMPONENT }} package ${{ matrix.package }} 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 82d28fc

Please sign in to comment.