Skip to content

Commit

Permalink
added gitleaks into workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Apr 18, 2021
1 parent 17c1f62 commit 19717f7
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: golangci-lint
name: lint
on:
push:
tags:
- v*
branches:
- master
tags: [ v* ]
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
golangci:
golangci-lint:
name: lint
runs-on: ubuntu-latest
steps:
Expand All @@ -25,4 +24,12 @@ jobs:
args: --issues-exit-code=0 --disable=nakedret,exhaustivestruct,wrapcheck,paralleltest,rowserrcheck,cyclop,scopelint,nilerr

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# only-new-issues: true
gitleaks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: gitleaks-action
uses: zricethezav/gitleaks-action@master

0 comments on commit 19717f7

Please sign in to comment.