Skip to content

[Security] Pin GitHub Actions to a full-length commit SHA #60

[Security] Pin GitHub Actions to a full-length commit SHA

[Security] Pin GitHub Actions to a full-length commit SHA #60

Workflow file for this run

---
name: 'Lint'
on:
push:
branches:
- 'trunk'
paths-ignore:
- '.editorconfig'
- '.gitignore'
- '.golangci.toml'
- 'CONTRIBUTING.md'
- 'LICENSE-3rdparty.csv'
- 'LICENSE.md'
- 'NOTICE'
- 'README.md'
- 'SUPPORT.md'
pull_request:
branches:
- 'trunk'
paths-ignore:
- '.editorconfig'
- '.gitignore'
- '.golangci.toml'
- 'CONTRIBUTING.md'
- 'LICENSE-3rdparty.csv'
- 'LICENSE.md'
- 'NOTICE'
- 'README.md'
- 'SUPPORT.md'
permissions:
contents: 'read'
jobs:
go:
name: 'Lint Go files'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1'
- name: 'Setup Go environment'
uses: 'actions/setup-go@7b8cf10d4e4a01d4992d18a89f4d7dc5a3e6d6f4 # v4.3.0'
with:
go-version: '1.21.x'
- name: 'Run govulncheck'
run: 'make vulnerabilities'
- name: 'Run gofumpt'
run: 'make fmt'
- name: 'Run golangci-lint'
run: 'make lint'