build(snyk): add organization to the CLI call #3
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: Vulnerability scan | |
on: | |
push: | |
branches: | |
- snyk-integration-test | |
- master | |
- main | |
jobs: | |
security: | |
runs-on: | |
group: organization/Default | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Snyk CLI | |
uses: snyk/actions/setup@master | |
- name: Setup Snyk CLI dependencies | |
uses: actions/setup-go@v1 | |
with: | |
go-version: "1.13" | |
- name: Install cargo-cyclonedx | |
run: cargo install cargo-cyclonedx | |
- name: Create CycloneDX SBOM | |
run: cargo cyclonedx --all-features --format json | |
- name: Run Snyk monitor for vulnerabilities | |
run: | | |
snyk sbom monitor --org=sdk --experimental --file=bom.json --project-name=pubnub/rust | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_SDK_TOKEN }} |