Skip to content

Commit

Permalink
ci: snyk integration
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-karwacki-rdx committed Aug 3, 2023
1 parent 0625861 commit ef0338c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Test SBOM generation
run: snyk sbom --file=./node-runner-cli/Pipfile --format=cyclonedx1.4+json --json-file-output sbom.json
run: snyk sbom --file=./node-runner-cli/Pipfile --org=${{ env.SNYK_NETWORK_ORG_ID }} --format=cyclonedx1.4+json --json-file-output sbom.json

package_ubuntu_cli:
name: "Package cli for Ubuntu"
Expand Down Expand Up @@ -201,7 +201,7 @@ jobs:
if: ${{ github.event_name == 'release' }}
permissions: write-all
needs:
- upload-release-jammy
- package_ubuntu_cli
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b
- uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main
Expand Down Expand Up @@ -230,7 +230,7 @@ jobs:
snyk -v
snyk auth ${{ env.SNYK_TOKEN }}
- name: Generate SBOM
run: snyk sbom --file=./node-runner-cli/Pipfile --format=cyclonedx1.4+json --json-file-output sbom.json
run: snyk sbom --file=./node-runner-cli/Pipfile --org=${{ env.SNYK_NETWORK_ORG_ID }} --format=cyclonedx1.4+json --json-file-output sbom.json
- name: Upload SBOM
uses: AButler/upload-release-assets@c94805dc72e4b20745f543da0f62eaee7722df7a # v2.0.2
with:
Expand Down Expand Up @@ -513,8 +513,9 @@ jobs:

snyk-monitor:
runs-on: ubuntu-latest
#needs:
# - upload-release-jammy
if: ${{ github.event_name == 'release' }}
needs:
- package_ubuntu_cli
permissions:
id-token: write
pull-requests: read
Expand Down

0 comments on commit ef0338c

Please sign in to comment.