Skip to content
Closed
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
23 changes: 16 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install Rust nightly
run: rustup update nightly && rustup default nightly && rustup component add rustfmt clippy
Expand All @@ -26,7 +28,9 @@ jobs:
channel: [nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install Rust ${{ matrix.channel }}
shell: bash
Expand All @@ -51,7 +55,9 @@ jobs:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install Rust nightly
run: rustup update --no-self-update nightly && rustup default nightly
Expand All @@ -69,7 +75,9 @@ jobs:
name: Build the Docker image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Build the Docker image
run: docker build -t crater .
Expand All @@ -80,7 +88,7 @@ jobs:
docker save crater | gzip > /tmp/docker-images/crater.tar.gz

- name: Upload the image to GitHub Actions artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: docker-images
path: /tmp/docker-images
Expand All @@ -96,7 +104,7 @@ jobs:

steps:
- name: Download the image from GitHub Actions artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: docker-images
path: docker-images
Expand All @@ -105,7 +113,7 @@ jobs:
run: cat docker-images/crater.tar.gz | gunzip | docker load

- name: Upload the Docker image to ECR
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@4da88c824d96c01628fbad1e1b97cd24e08216c4 # master (2026-04-10)
with:
image: crater
repository: crater
Expand All @@ -114,6 +122,7 @@ jobs:
aws_secret_access_key: "${{ secrets.aws_secret_access_key }}"

conclusion:
name: Conclusion
needs: [docker-upload]
# We need to ensure this job does *not* get skipped if its dependencies fail,
# because a skipped job is considered a success by GitHub. So we have to
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ jobs:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install Rust nightly
run: rustup update nightly && rustup default nightly && rustup component add rustfmt clippy
Expand All @@ -21,7 +23,9 @@ jobs:
name: Linux testing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Install Rust nightly
run: rustup update nightly && rustup default nightly
Expand All @@ -41,6 +45,7 @@ jobs:
# Note: this job is used so that there is a job named "conclusion" both in the PR and merge queue
# CI. Otherwise, it would not be possible for PR CI to succeed.
conclusion:
name: Conclusion
needs: [lint, test]
# We need to ensure this job does *not* get skipped if its dependencies fail,
# because a skipped job is considered a success by GitHub. So we have to
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/zizmor-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: GitHub Actions Security Audit (zizmor)

on:
pull_request:
branches: ["**"]
paths:
- '.github/workflows/**'
- '.github/actions/**'
merge_group:
push:
branches:
- master
paths:
- '.github/workflows/**'
- '.github/actions/**'
schedule:
# Run daily at 00:00 UTC to catch newly-disclosed vulnerabilities
- cron: '0 0 * * *'
workflow_dispatch:

permissions: {}

jobs:
zizmor-audit:
name: Security Audit
runs-on: ubuntu-latest
permissions:
contents: read # Read repository to scan workflows
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Run zizmor security audit
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
with:
inputs: .github/workflows/
persona: pedantic
annotations: true
advanced-security: false
Loading