Skip to content

feat: use correct branch #1

feat: use correct branch

feat: use correct branch #1

Workflow file for this run

name: Linting
on:
push:
branches:
- main
tags-ignore: ["**"]
pull_request:
jobs: # Docs: <https://git.io/JvxXE>
gitleaks:
name: Gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: gacts/gitleaks@v1 # Action page: <https://github.com/zricethezav/gitleaks-action>
with:
config-path: .gitleaks.toml
golangci-lint:
name: Golang-CI (lint)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: {fetch-depth: 0}
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: false
- name: Run linter
uses: golangci/golangci-lint-action@v4 # Action page: <https://github.com/golangci/golangci-lint-action>
with:
version: v1.56 # without patch version
only-new-issues: false # show only new issues if it's a pull request
args: --timeout 4m # the default of 1m didn't suffice occasionally