Add missing SCA / SAST scans to CI #114
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} | ||
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 |