Skip to content

Add SNYK security analysis workflow #1487

Add SNYK security analysis workflow

Add SNYK security analysis workflow #1487

Workflow file for this run

name: Run Tests
on: [push, pull_request]
jobs:
codeql-sast:
name: CodeQL SAST scan
uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
permissions:
security-events: write
dependency-review:
name: Dependency Review scan
uses: alphagov/govuk-infrastructure/.github/workflows/dependency-review.yml@main
snyk-security:
name: SNYK security analysis
secrets: inherit
uses: alphagov/govuk-infrastructure/.github/workflows/snyk-security.yml@fix-snyk
with:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

Check failure on line 21 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / Run Tests

Invalid workflow file

The workflow is not valid. .github/workflows/tests.yml (Line: 21, Col: 19): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.SNYK_TOKEN
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- name: Install dependencies and run Rake
run: |
bundle install
bundle exec rake