Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Checkout repository without persisting credentials to reduce attack surface
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install mdbook
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
RUN_BLACKSMITH: 1
steps:
# Checkout repository without persisting credentials to reduce attack surface
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install mdbook
Expand Down
22 changes: 9 additions & 13 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,21 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

# Minimal permissions for auditing
permissions:
contents: read
permissions: {}

jobs:
zizmor:
name: Run zizmor security audit
runs-on: ubuntu-latest
permissions:
contents: read
steps:
# Checkout repository without persisting credentials to reduce attack surface
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install zizmor
run: |
curl -sSL https://github.com/woodruffw/zizmor/releases/download/v1.24.1/zizmor-x86_64-unknown-linux-gnu.tar.gz | tar -xz
chmod +x zizmor
sudo mv zizmor /usr/local/bin/

- name: Run zizmor audit
run: zizmor --persona pedantic --min-severity low .github/workflows
- name: Run zizmor
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
with:
Comment thread
ubiratansoares marked this conversation as resolved.
persona: pedantic
advanced-security: false