Skip to content

Commit a93a344

Browse files
authored
Merge pull request #177 from maxmind/nobeid/github-actions-zizmor
integrate zizmor in github actions
2 parents f06a3e2 + a154e48 commit a93a344

File tree

5 files changed

+37
-0
lines changed

5 files changed

+37
-0
lines changed

.github/workflows/clang-addresssanitizer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222
with:
2323
submodules: true
24+
persist-credentials: false
2425

2526
- name: Install system dependencies
2627
run: sudo apt update && sudo apt install pkg-config clang build-essential libxml2-dev libsqlite3-dev wget libssl-dev libcurl4 zlib1g-dev libcurl4-openssl-dev libonig-dev libzip-dev -y

.github/workflows/clang-analyzer.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: actions/checkout@v4
2323
with:
2424
submodules: true
25+
persist-credentials: false
2526

2627
- name: Install clang-tools and libmaxminddb
2728
run: sudo apt update && sudo apt-get install clang-tools libmaxminddb-dev

.github/workflows/lint.yml

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

1919
- name: Checkout
2020
uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
2123

2224
- name: Install dependencies
2325
run: composer install --no-progress --prefer-dist --optimize-autoloader

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
uses: actions/checkout@v4
3636
with:
3737
submodules: true
38+
persist-credentials: false
3839

3940
- name: Install libmaxminddb
4041
run: |

.github/workflows/zizmor.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: GitHub Actions Security Analysis with zizmor
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
jobs:
10+
zizmor:
11+
name: zizmor latest via PyPI
12+
runs-on: ubuntu-latest
13+
permissions:
14+
security-events: write
15+
# required for workflows in private repositories
16+
contents: read
17+
actions: read
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
persist-credentials: false
23+
24+
- name: Install the latest version of uv
25+
uses: astral-sh/setup-uv@v5
26+
with:
27+
enable-cache: false
28+
29+
- name: Run zizmor
30+
run: uvx zizmor --format plain .
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)