Skip to content

Merge pull request #1903 from iotaledger/develop-legacy #2361

Merge pull request #1903 from iotaledger/develop-legacy

Merge pull request #1903 from iotaledger/develop-legacy #2361

name: Test Golang dependencies with Snyk
on:
push:
branches: [legacy, develop-legacy]
pull_request:
branches: [legacy, develop-legacy]
jobs:
security:
# Only run on push events or PRs from iotaledger/hornet, skip on PRs from forks
# Secret variables cannot be exposed to PRs from forks
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@0.1.1
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --org=iotaledger