Skip to content

Fix cmd_fix to check if the provided path is a project #32

Fix cmd_fix to check if the provided path is a project

Fix cmd_fix to check if the provided path is a project #32

Workflow file for this run

name: golangci-lint
on:
workflow_dispatch:
push:
tags-ignore:
- "*"
branches:
- main
paths:
- '*.go'
- '**/*.go'
- '.github/workflows/lint.yml'
pull_request:
paths:
- '*.go'
- '**/*.go'
- '.github/workflows/lint.yml'
permissions:
contents: read
env:
GOTOOLCHAIN: local
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # ratchet:step-security/[email protected]
with:
egress-policy: block
disable-sudo: true
allowed-endpoints: >
api.github.com:443
github.com:443
golangci-lint.run:443
objects.githubusercontent.com:443
proxy.golang.org:443
raw.githubusercontent.com:443
storage.googleapis.com:443
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # ratchet:actions/setup-go@v5
with:
go-version: '1.24'
check-latest: true
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # ratchet:golangci/golangci-lint-action@v6
with:
version: latest
args: --timeout 4m