Skip to content

Commit bc5c305

Browse files
authored
Merge pull request #185 from maxmind/nobeid/github-actions-zizmor
integrate zizmor in github actions
2 parents ba04b7b + a567695 commit bc5c305

3 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/lint.yml

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

2020
- name: Checkout
2121
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2224

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

.github/workflows/test.yml

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

2727
- name: Checkout
2828
uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
2931

3032
- name: Install dependencies
3133
run: composer install --no-progress --prefer-dist --optimize-autoloader

.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)