Skip to content

Merge pull request #180 from rancher-sandbox/dependabot/github_action… #231

Merge pull request #180 from rancher-sandbox/dependabot/github_action…

Merge pull request #180 from rancher-sandbox/dependabot/github_action… #231

Workflow file for this run

name: Lint
on:
push:
pull_request:
permissions:
contents: read
jobs:
lint:
name: golangci-lint
runs-on: ubuntu-latest
permissions:
contents: read
container:
image: registry.opensuse.org/opensuse/tumbleweed:latest
steps:
- name: Install dependencies
run: zypper -n install git tar gzip curl gawk go nodejs-default
- name: Clone the code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Fix git safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: golangci-lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.11.1
args: --timeout=5m
skip-cache: true