Skip to content

Commit

Permalink
ci: fixes for cargo audit
Browse files Browse the repository at this point in the history
  • Loading branch information
dougch committed Nov 13, 2024
1 parent 2ba3dda commit 10147e7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: dependencies

on:
Expand All @@ -16,6 +17,12 @@ on:
# Run every day at 1800 UTC.
- cron: "0 18 * * *"

env:
# Pin the nightly toolchain to prevent breakage.
# This should be occasionally updated.
RUST_NIGHTLY_TOOLCHAIN: nightly-2024-01-01
ROOT_PATH: bindings/rust

jobs:
audit:
runs-on: ubuntu-latest
Expand All @@ -24,6 +31,15 @@ jobs:
checks: write # Create/update a check run.
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
id: toolchain
run: |
rustup toolchain install stable
rustup override set stable
- uses: camshaft/rust-cache@v1
- name: Generate
run: ${{env.ROOT_PATH}}/generate.sh
- uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
working-directory: ${{env.ROOT_PATH}}

0 comments on commit 10147e7

Please # to comment.