1.6.0 #66
Workflow file for this run
This file contains 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: Release | |
on: | |
release: | |
types: | |
- "published" | |
jobs: | |
publish_sbom: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: RDXWorks-actions/checkout@main | |
- uses: RDXWorks-actions/setup-node@main | |
with: | |
node-version: '14' | |
- uses: RDXWorks-actions/ssh-agent@master | |
with: | |
ssh-private-key: | | |
${{ secrets.SWIFT_ENGINE_TOOLKIT_SSH_KEY }} | |
- name: Install snyk | |
run: | | |
npm install snyk -g | |
snyk -v | |
snyk auth ${{ secrets.SNYK_TOKEN }} | |
- name: Generate SBOM | |
run: | | |
snyk sbom --all-projects --org=${{ secrets.SNYK_ORG_ID }} --format=cyclonedx1.4+json > sbom.json | |
- name: Upload SBOM | |
uses: RDXWorks-actions/upload-release-assets@c94805dc72e4b20745f543da0f62eaee7722df7a | |
with: | |
files: sbom.json | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |