Skip to content

Commit d0c485b

Browse files
committed
Add shared security workflow
1 parent fcda9f2 commit d0c485b

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Security
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
pull_request:
7+
schedule:
8+
- cron: '27 3 * * 1'
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
code-scanning:
15+
uses: magicsunday/.github/.github/workflows/code-scanning.yml@main
16+
permissions:
17+
contents: read
18+
security-events: write
19+
20+
zizmor:
21+
uses: magicsunday/.github/.github/workflows/zizmor.yml@main
22+
permissions:
23+
contents: read
24+
security-events: write
25+
26+
scorecard:
27+
# Scorecard publishes against the default branch; skip pull-request runs.
28+
if: github.event_name != 'pull_request'
29+
uses: magicsunday/.github/.github/workflows/scorecard.yml@main
30+
permissions:
31+
contents: read
32+
security-events: write
33+
id-token: write
34+
35+
dependency-review:
36+
# The dependency-review action only runs in a pull-request context.
37+
if: github.event_name == 'pull_request'
38+
uses: magicsunday/.github/.github/workflows/dependency-review.yml@main
39+
permissions:
40+
contents: read
41+
pull-requests: write

0 commit comments

Comments
 (0)