Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 43de516

Browse files
authored
Merge pull request #54 from maxmind/nobeid/github-actions-zizmor
integrate zizmor in github actions
2 parents b8f604e + ec619e0 commit 43de516

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
name: "Build ${{ matrix.perl-version }} test on ${{ matrix.platform }}"
3131
steps:
3232
- uses: actions/checkout@v2
33+
with:
34+
persist-credentials: false
3335
- uses: shogo82148/actions-setup-perl@v1
3436
with:
3537
perl-version: ${{ matrix.perl-version }}

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