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
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
types: [checks_requested]
workflow_dispatch:

permissions: read-all
permissions:
contents: read

env:
CARGO_TERM_COLOR: always
Expand All @@ -27,6 +28,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Install cargo-deny
uses: EmbarkStudios/cargo-deny-action@v2
Expand All @@ -39,6 +42,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -69,6 +74,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -104,6 +111,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Install additional shells
if: startsWith(matrix.runs-on, 'ubuntu')
Expand Down Expand Up @@ -155,6 +164,8 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Download rv binary
uses: actions/download-artifact@v5
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: GitHub Actions security

on:
push:
branches: [main]
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read
actions: read
steps:
- name: Check out repo
uses: actions/checkout@v6
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@v0.5.0
14 changes: 14 additions & 0 deletions .github/zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
rules:
unpinned-uses:
# TODO: pin all action references to commit SHAs
disable: true

template-injection:
ignore:
# release.yml is autogenerated by cargo-dist
- release.yml

excessive-permissions:
ignore:
# release.yml is autogenerated by cargo-dist and requires contents:write
- release.yml