-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b5ff6f
commit 6c40d84
Showing
2 changed files
with
86 additions
and
86 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
#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 --json-file-output sbom.json | ||
# - name: Upload SBOM | ||
# uses: RDXWorks-actions/upload-release-assets@c94805dc72e4b20745f543da0f62eaee7722df7a | ||
# with: | ||
# files: sbom.json | ||
# repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
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 }} |