Skip to content

Commit

Permalink
ci: update workflows to zizmor 1.2.X (#617)
Browse files Browse the repository at this point in the history
There is a new zizmor release that requires further hardening of the
permissions in the GH Actions workflows
  • Loading branch information
storopoli authored Jan 20, 2025
1 parent 38abd51 commit 26910ae
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/cron-nightly-rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Update nightly Rust

on:
schedule:
- cron: "29 17 1 * *" # At 17:29 on day-of-month 1.
workflow_dispatch: # allows manual triggering

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
format:
name: Update nightly Rustc
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cron-zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
schedule:
- cron: "0 0 * * *" # Run every day at midnight

permissions: {}

jobs:
zizmor:
name: zizmor latest via PyPI
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ env:
</p>
</details>
permissions: {}

jobs:
update:
name: Update
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
docs:
name: Generate docs
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/functional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
lint:
name: Lint test files
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ env:
RUST_LOG: debug
RUST_BACKTRACE: full

permissions: {}

jobs:
test:
name: Run integration tests and generate report
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint-actions.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Lint GitHub Actions workflows

on:
pull_request:
paths:
Expand All @@ -8,6 +9,8 @@ on:
paths:
- ".github/**"

permissions: {}

jobs:
actionlint:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
clippy:
name: Run clippy on crates
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/mutants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.run_id }}
cancel-in-progress: true

permissions: {}

jobs:
mutants-test:
name: Generate mutants on diff against default branch and test
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/prover.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
push:
branches: [main]

permissions: {}

jobs:
eval_perf:
permissions:
Expand Down Expand Up @@ -59,4 +61,3 @@ jobs:
working-directory: provers/perf
env:
RUSTFLAGS: "-C target-cpu=native -C link-arg=-fuse-ld=lld"

2 changes: 2 additions & 0 deletions .github/workflows/security.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
env:
CARGO_TERM_COLOR: always

permissions: {}

jobs:
supply-chain:
name: Run `cargo-audit`
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: {}

jobs:
test:
name: Run unit tests and generate report
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
pull_request:
branches: ["**"]

permissions: {}

jobs:
zizmor:
name: zizmor latest via PyPI
Expand Down

0 comments on commit 26910ae

Please sign in to comment.