-
-
Notifications
You must be signed in to change notification settings - Fork 381
36 lines (32 loc) · 1.04 KB
/
Copy pathaudit.yml
File metadata and controls
36 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Audit Rust dependencies
on:
pull_request:
push:
branches:
- main
permissions: {}
jobs:
pre-job:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- name: Check if this action should be skipped
id: skip_check
uses: ClementTsang/skip-duplicate-actions@41b0a75f656d455934ffa6a46b779d8d996ac47c
with:
skip_after_successful_duplicate: "true"
paths: '[".github/workflows/audit.yml", "**/Cargo.lock", "**/Cargo.toml"]'
do_not_skip: '["workflow_dispatch", "push"]'
rust_deps_audit:
needs: pre-job
runs-on: ubuntu-latest
# Required to create check results if an action is required.
permissions: { checks: write }
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Run audit check
uses: rustsec/audit-check@858dc40f52ca2b8570b7a997c1c4e35c6fc9a432
with:
token: ${{ secrets.GITHUB_TOKEN }}