Skip to content

Commit 36a5bee

Browse files
authored
chore: Gosec - enable security linting (#585)
#### What this PR does / why we need it see: open-component-model/ocm-project#270 #### Which issue(s) this PR fixes fixes: #583
1 parent 9820689 commit 36a5bee

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/code-scan.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Code scanning"
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
schedule:
9+
- cron: "26 14 * * 2"
10+
11+
jobs:
12+
gosec:
13+
permissions:
14+
# Required to upload SARIF files
15+
security-events: write
16+
# for actions/checkout to fetch code
17+
contents: read
18+
# call reusable workflow from central '.github' repo
19+
uses: open-component-model/.github/.github/workflows/code-scan.yml@main
20+
secrets: inherit

0 commit comments

Comments
 (0)