Skip to content

Commit fa52290

Browse files
committedDec 21, 2022
Use setup-rust/audit action for Rust audit jobs
See: - artichoke/setup-rust#17
1 parent 12f1ba4 commit fa52290

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed
 

‎github-org-artichoke/templates/audit-workflow-node-ruby-rust.yaml

+2-17
Original file line numberDiff line numberDiff line change
@@ -58,27 +58,12 @@ jobs:
5858
uses: actions/checkout@v3
5959

6060
- name: Install Rust toolchain
61-
run: |
62-
echo "::group::rustup toolchain install"
63-
rustup toolchain install stable --profile minimal
64-
echo "::endgroup::"
65-
echo "::group::set default toolchain"
66-
rustup default stable
67-
echo "::endgroup::"
68-
echo "::group::rustup version"
69-
rustup -Vv
70-
echo "::endgroup::"
71-
echo "::group::rustc version"
72-
rustc -Vv
73-
echo "::endgroup::"
74-
echo "::group::cargo version"
75-
cargo version --verbose
76-
echo "::endgroup::"
61+
uses: artichoke/setup-rust/audit@v1
7762

7863
- name: Generate Cargo.lock
7964
run: |
8065
if [[ ! -f "Cargo.lock" ]]; then
81-
cargo +stable generate-lockfile --verbose
66+
cargo generate-lockfile --verbose
8267
fi
8368
8469
- uses: EmbarkStudios/cargo-deny-action@v1

‎github-org-artichoke/templates/audit-workflow-ruby-rust.yaml

+2-17
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,12 @@ jobs:
4444
uses: actions/checkout@v3
4545

4646
- name: Install Rust toolchain
47-
run: |
48-
echo "::group::rustup toolchain install"
49-
rustup toolchain install stable --profile minimal
50-
echo "::endgroup::"
51-
echo "::group::set default toolchain"
52-
rustup default stable
53-
echo "::endgroup::"
54-
echo "::group::rustup version"
55-
rustup -Vv
56-
echo "::endgroup::"
57-
echo "::group::rustc version"
58-
rustc -Vv
59-
echo "::endgroup::"
60-
echo "::group::cargo version"
61-
cargo version --verbose
62-
echo "::endgroup::"
47+
uses: artichoke/setup-rust/audit@v1
6348

6449
- name: Generate Cargo.lock
6550
run: |
6651
if [[ ! -f "Cargo.lock" ]]; then
67-
cargo +stable generate-lockfile --verbose
52+
cargo generate-lockfile --verbose
6853
fi
6954
7055
- uses: EmbarkStudios/cargo-deny-action@v1

0 commit comments

Comments
 (0)
Please sign in to comment.