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 8f62368
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
tags: [ v* ]
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
golangci:
name: lint
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 8f62368

Please sign in to comment.