Skip to content

Commit eda2d04

Browse files
committed
ci: fix checkout steps
1 parent 53a3cc9 commit eda2d04

File tree

3 files changed

+0
-13
lines changed

3 files changed

+0
-13
lines changed

.github/workflows/lint.yml

-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v4
29-
with:
30-
ref: ${{ github.event.pull_request.head.sha }}
3129

3230
- uses: actions/setup-go@v5
3331
with:

.github/workflows/security.yml

-9
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
name: govulncheck
2020
steps:
2121
- uses: actions/checkout@v4
22-
with:
23-
ref: ${{ github.event.pull_request.head.sha }}
2422

2523
- uses: actions/setup-go@v5
2624
with:
@@ -49,8 +47,6 @@ jobs:
4947
image: returntocorp/semgrep
5048
steps:
5149
- uses: actions/checkout@v4
52-
with:
53-
ref: ${{ github.event.pull_request.head.sha }}
5450

5551
- uses: actions/checkout@v4
5652
with:
@@ -71,9 +67,6 @@ jobs:
7167
name: gitleaks
7268
steps:
7369
- uses: actions/checkout@v4
74-
with:
75-
fetch-depth: 0
76-
ref: ${{ github.event.pull_request.head.sha }}
7770

7871
- uses: gitleaks/gitleaks-action@v2
7972
env:
@@ -94,8 +87,6 @@ jobs:
9487

9588
steps:
9689
- uses: actions/checkout@v4
97-
with:
98-
ref: ${{ github.event.pull_request.head.sha }}
9990

10091
- uses: anchore/scan-action@v3
10192
with:

.github/workflows/test.yml

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ jobs:
1717
name: go test
1818
steps:
1919
- uses: actions/checkout@v4
20-
with:
21-
ref: ${{ github.event.pull_request.head.sha }}
2220

2321
- uses: actions/setup-go@v5
2422
with:

0 commit comments

Comments
 (0)