Skip to content

Commit 22bae06

Browse files
committed
add zizmor to ci (#211)
Co-authored-by: detachhead <detachhead@users.noreply.github.com> (cherry picked from commit 92fa38d)
1 parent 9a55732 commit 22bae06

3 files changed

Lines changed: 37 additions & 1 deletion

File tree

.github/workflows/IntelliJ_IDEA.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ jobs:
5757
- uses: actions/download-artifact@v4.1.8
5858

5959
- name: Create Release
60-
uses: marvinpinto/action-automatic-releases@v1.2.1
60+
# the maintainer said they archived this action because "there are much better alternatives these days"
61+
# but i have yet to find a single alternative that works the way i want (automatically creates the tag)
62+
uses: marvinpinto/action-automatic-releases@919008cf3f741b179569b7a6fb4d8860689ab7f0 # zizmor: ignore[archived-uses]
6163
with:
6264
title: ${{ needs.get_version.outputs.version }}
6365
automatic_release_tag: ${{ needs.get_version.outputs.version }}

.github/workflows/zizmor.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: GitHub Actions Security Analysis with zizmor
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["**"]
8+
9+
permissions: {}
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
13+
cancel-in-progress: true
14+
15+
jobs:
16+
zizmor:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
security-events: write # for integration with github "advanced security" https://github.com/zizmorcore/zizmor-action#usage-with-github-advanced-security-recommended
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
25+
26+
- name: Run zizmor
27+
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
28+
with:
29+
persona: auditor
30+
online-audits: false # for consistency when running locally

zizmor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rules:
2+
anonymous-definition:
3+
# the docs say actions without a name render anonymously in github but that's not the case, it uses the yaml key
4+
disable: true

0 commit comments

Comments
 (0)