Skip to content

Commit

Permalink
Merge pull request #11 from C-Pro/fix/lint-checkout-ref
Browse files Browse the repository at this point in the history
change ref for lint actions
  • Loading branch information
C-Pro authored Nov 4, 2023
2 parents 4f6a084 + 2674c98 commit 0242bfa
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 10
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: GitLeaks
uses: gitleaks/gitleaks-action@v2
env:
Expand All @@ -30,6 +29,8 @@ jobs:
if: (github.actor != 'dependabot[bot]')
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: semgrep
env:
SEMGREP_RULES: p/default # more at semgrep.dev/explore
Expand All @@ -40,7 +41,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Scan the code
run: /osv-scanner -r --skip-git . || if [ $? -eq 128 ]; then true; else exit $?; fi
golangci-lint:
Expand All @@ -49,10 +50,10 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: "1.20"
go-version: "1.21"
- uses: golangci/golangci-lint-action@v3
with:
version: v1.51

0 comments on commit 0242bfa

Please sign in to comment.