Skip to content

Commit c673e29

Browse files
committedMay 11, 2024
ci: move semgrep to lint instead of security
1 parent f4a8e3a commit c673e29

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed
 

‎.github/workflows/lint.yml

+22
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,25 @@ jobs:
6868
- uses: github/codeql-action/autobuild@v3
6969

7070
- uses: github/codeql-action/analyze@v3
71+
72+
# ------------------------------
73+
74+
semgrep:
75+
runs-on: ubuntu-latest
76+
name: semgrep
77+
container:
78+
image: returntocorp/semgrep
79+
steps:
80+
- uses: actions/checkout@v4
81+
82+
- uses: actions/checkout@v4
83+
with:
84+
repository: dgryski/semgrep-go
85+
path: rules
86+
87+
- uses: actions/setup-go@v5
88+
with:
89+
go-version-file: go.mod
90+
91+
- name: semgrep
92+
run: semgrep scan --error --enable-nosem -f ./rules .

‎.github/workflows/security.yml

-22
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,6 @@ jobs:
4040

4141
# ------------------------------
4242

43-
semgrep:
44-
runs-on: ubuntu-latest
45-
name: semgrep
46-
container:
47-
image: returntocorp/semgrep
48-
steps:
49-
- uses: actions/checkout@v4
50-
51-
- uses: actions/checkout@v4
52-
with:
53-
repository: dgryski/semgrep-go
54-
path: rules
55-
56-
- uses: actions/setup-go@v5
57-
with:
58-
go-version-file: go.mod
59-
60-
- name: semgrep
61-
run: semgrep scan --error --enable-nosem -f ./rules .
62-
63-
# ------------------------------
64-
6543
gitleaks:
6644
runs-on: ubuntu-latest
6745
name: gitleaks

0 commit comments

Comments
 (0)