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
43 changes: 43 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Security updates are separate from this file and always on: they open a pull
# request the moment an advisory lands and ignore the cooldown below. This file
# adds routine version updates, which are the slower, calmer half.
version: 2

updates:
# Third-party actions run inside release.yml next to the signing secrets, so
# a compromised action is the most damaging dependency this repository has.
# The actions are pinned to commit SHAs; Dependabot moves the SHA and the
# version comment together.
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
actions:
patterns: ['*']

- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
# A release published today may be one its maintainer's account was used to
# push a minute ago. Waiting a week costs nothing for routine bumps and
# lets a compromised release be yanked before it reaches this repository.
cooldown:
default-days: 7
groups:
cargo:
update-types: [minor, patch]

# pnpm is Dependabot's `npm` ecosystem.
- package-ecosystem: npm
directory: /website
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
website:
update-types: [minor, patch]
2 changes: 1 addition & 1 deletion .github/workflows/release-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
with:
version: ${{ github.ref_name }}

- uses: pnpm/setup@v2
- uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2
with:
# The version comes from website/package.json's packageManager field,
# so local development and this job cannot drift apart. There is no
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: stable
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2

# Gate everything behind the tag matching the version recorded in source.
# An expensive build matrix must never run for a tag that disagrees with
Expand Down Expand Up @@ -86,11 +87,12 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: stable
targets: ${{ matrix.target }}

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2
with:
key: ${{ matrix.target }}

Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: stable
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2

- name: Check formatting
run: cargo fmt --check
Expand All @@ -40,9 +41,11 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
with:
toolchain: stable

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2

- name: Test
run: cargo test
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: pnpm/setup@v2
- uses: pnpm/setup@84cb39b217b10273981911c288cd62326dc7c6d2 # v2
with:
# Reads the pnpm version from the site's own package.json; the
# repository root has none.
Expand Down
Loading
Loading