Skip to content

chore(deps): update actions/checkout action to v4 #103

chore(deps): update actions/checkout action to v4

chore(deps): update actions/checkout action to v4 #103

Workflow file for this run

name: Code Scanning
on: [push]
jobs:
golangci-lint-code-scanning:
name: Code Scanning with errorformat / golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- uses: actions/setup-go@v4
with:
go-version: "1.21"
- run: go install ./cmd/errorformat/
- name: Install golangci-lint
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
- run: golangci-lint run --out-format=line-number | errorformat -name=golangci-lint -w=sarif > results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif