build(deps): STTRS-3145 close security advisory #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: SCA Scan | |
| on: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| permissions: | |
| contents: read | |
| id-token: write | |
| packages: read | |
| actions: read | |
| statuses: write | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| sca_scan: | |
| uses: SolaceDev/solace-public-workflows/.github/workflows/sca-scan-and-guard.yaml@main | |
| with: | |
| setup_actions: '["setup-java", "maven-settings"]' | |
| java_distribution: temurin | |
| secrets: | |
| FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }} | |
| update_manifest: | |
| needs: sca_scan | |
| # The manifest records what landed on the default branch, so it must never | |
| # be written from a PR run -- the scan still runs, the write does not. | |
| if: >- | |
| needs.sca_scan.result == 'success' | |
| && github.event_name == 'push' | |
| && github.ref_name == github.event.repository.default_branch | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| packages: read | |
| steps: | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4 | |
| with: | |
| role-to-assume: ${{ secrets.MANIFEST_AWS_ROLE }} | |
| aws-region: us-east-1 | |
| - name: Update solace-cloud-manifest | |
| uses: SolaceDev/solace-public-workflows/.github/actions/cicd-helper@main | |
| with: | |
| rc_step: add_item_from_json_to_dynamodb_table | |
| ddb_table_name: solace-cloud-manifest | |
| ddb_partition_key: squad | |
| ddb_sort_key: repository | |
| ddb_item_to_be_added: | | |
| { | |
| "squad": "cto", | |
| "repository": "${{ github.event.repository.name }}", | |
| "dev": { | |
| "sha": "${{ github.sha }}", | |
| "version": "${{ github.ref_name }}" | |
| } | |
| } |