Skip to content

Add CodeQL (SAST) scan and Dependency Review (SCA) scan to CI pipeline #376

Add CodeQL (SAST) scan and Dependency Review (SCA) scan to CI pipeline

Add CodeQL (SAST) scan and Dependency Review (SCA) scan to CI pipeline #376

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
paths-ignore:
- ".git**"
- README.md
- docs
workflow_dispatch:
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
test-go:
name: Test Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: make unit_tests
- run: make integration_tests
env:
ROUTER_MONGO_URL: localhost
golangci-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v3
with:
version: v1.53