Skip to content

Commit 27fa647

Browse files
authored
Add zizmor GitHub Actions workflow for CI security analysis (boto#374)
1 parent 1eb5642 commit 27fa647

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: "Checkout repository"
2323
uses: "actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8"
24+
with:
25+
persist-credentials: false
2426

2527
- name: "Run CodeQL init"
2628
uses: "github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a"

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
17+
with:
18+
persist-credentials: false
1719
- name: Set up Python 3.9
1820
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
1921
with:

.github/workflows/run-crt-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
24+
with:
25+
persist-credentials: false
2426
- name: Set up Python ${{ matrix.python-version }}
2527
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
2628
with:

.github/workflows/run-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
24+
with:
25+
persist-credentials: false
2426
- name: Set up Python ${{ matrix.python-version }}
2527
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1
2628
with:

.github/workflows/zizmor.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: GitHub Actions Security Analysis with zizmor 🌈
2+
3+
on:
4+
push:
5+
branches: ["develop"]
6+
pull_request:
7+
branches: ["develop"]
8+
9+
permissions: {}
10+
11+
jobs:
12+
zizmor:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
security-events: write
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
with:
20+
persist-credentials: false
21+
22+
- name: Run zizmor 🌈
23+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2

0 commit comments

Comments
 (0)