Skip to content

Add missing SCA / SAST scans to CI #114

Add missing SCA / SAST scans to CI

Add missing SCA / SAST scans to CI #114

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
snyk-security:
name: SNYK security analysis
uses: alphagov/govuk-infrastructure/.github/workflows/snyk-security.yml@main
secrets: inherit
permissions:
contents: read
security-events: write
actions: read
codeql-sast:
name: CodeQL SAST scan
uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
permissions:
security-events: write
strategy:
matrix:
# Override automatic language detection as the job was for some reason detecting
# Ruby and then failing to scan. See https://github.com/alphagov/govuk-browser-extension/actions/runs/8876065845/job/24366823308?pr=196
language: ["javascript-typescript"]
with:
target: ${{ matrix.language }}

Check failure on line 30 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 30, Col: 15): Invalid input, target is not defined in the referenced workflow.
dependency-review:
name: Dependency Review scan
uses: alphagov/govuk-infrastructure/.github/workflows/dependency-review.yml@main
test:
name: Test Extension JS
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies
shell: bash
run: npm install
- name: Run Jasmine
run: npm test