Skip to content

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

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

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

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
paths-ignore:
- ".git**"
- README.md
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:
name: Test Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- run: go test ./...
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v3
with:
version: v1.54
# caching issues, see: https://github.com/golangci/golangci-lint-action/issues/244#issuecomment-1052190775
skip-pkg-cache: true
skip-build-cache: true