Skip to content

replace badge of travis-ci with GitHub Actions #95

replace badge of travis-ci with GitHub Actions

replace badge of travis-ci with GitHub Actions #95

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@v3
- uses: actions/setup-go@v4
with:
go-version: 1.14
- 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