ci: expand workflow security auditing with actionlint

Rename the zizmor workflow to actions-security and add actionlint to provide comprehensive static analysis and linting for GitHub Actions.
This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:31:25 +07:00
1 parent 0c0f9e3d00
commit 741a3eb26e
1 file changed
+19 -2
+52
View File
@@ -0,0 +1,52 @@
name: GitHub Actions Security
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
schedule:
- cron: "11 3 * * 1"
workflow_dispatch:
permissions:
contents: read
jobs:
actionlint:
name: actionlint
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Run actionlint
uses: raven-actions/actionlint@v2
zizmor:
name: zizmor
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
actions: read
security-events: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Run zizmor
uses: zizmorcore/zizmor-action@v0.5.3
with:
persona: regular