Skip to content

feat: dev mode

feat: dev mode #1407

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
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # 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
release-assets.githubusercontent.com:443
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # ratchet:actions/setup-go@v6
with:
go-version: '1.25'
check-latest: true
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # ratchet:golangci/golangci-lint-action@v9
with:
version: latest
args: --timeout 4m