Skip to content

Commit

Permalink
Update snyk-security.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerpearlman authored May 23, 2024
1 parent 4423008 commit 6e1685b
Showing 1 changed file with 33 additions and 4 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/snyk-security.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
name: Run Snyk Scan for Package Vulnerabilities for gatekeeper-securitycenter
'on': push
name: Run Snyk Scan -- Go
on: push
jobs:
snyk-scan-go:
snyk-scan-python:
permissions:
contents: read
id-token: write
uses: epidemicsound/github-workflows/.github/workflows/snyk-scan-go.yaml@main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Authenticate to Google Cloud for accessing Snyk token
uses: "google-github-actions/auth@v2"
with:
workload_identity_provider: "projects/747834912006/locations/global/workloadIdentityPools/epidemicsound/providers/github"
service_account: "[email protected]"

- id: "secrets"
name: Access Snyk secret token
uses: "google-github-actions/get-secretmanager-secrets@v2"
with:
secrets: |-
token:es-platform-staging-fc6c/snyk-token-secret
- name: Setup Snyk
uses: snyk/actions/setup@master

- name: Add Snyk scan results to Snyk dashboard
run: snyk monitor -d --all-projects
continue-on-error: true
env:
SNYK_TOKEN: ${{ steps.secrets.outputs.token }}

- name: Run Snyk to check for vulnerabilities
run: snyk test --severity-threshold=critical -d --all-projects
env:
SNYK_TOKEN: ${{ steps.secrets.outputs.token }}

0 comments on commit 6e1685b

Please sign in to comment.