Skip to content

Commit

Permalink
Merge pull request #407 from artichoke/lopopolo/rust-audit-setup-rust
Browse files Browse the repository at this point in the history
Use setup-rust/audit action for Rust audit jobs
  • Loading branch information
lopopolo authored Dec 21, 2022
2 parents 12f1ba4 + 6f8f013 commit 5289869
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 35 deletions.
19 changes: 2 additions & 17 deletions github-org-artichoke/templates/audit-workflow-node-ruby-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,12 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
run: |
echo "::group::rustup toolchain install"
rustup toolchain install stable --profile minimal
echo "::endgroup::"
echo "::group::set default toolchain"
rustup default stable
echo "::endgroup::"
echo "::group::rustup version"
rustup -Vv
echo "::endgroup::"
echo "::group::rustc version"
rustc -Vv
echo "::endgroup::"
echo "::group::cargo version"
cargo version --verbose
echo "::endgroup::"
uses: artichoke/setup-rust/audit@v1

- name: Generate Cargo.lock
run: |
if [[ ! -f "Cargo.lock" ]]; then
cargo +stable generate-lockfile --verbose
cargo generate-lockfile --verbose
fi
- uses: EmbarkStudios/cargo-deny-action@v1
Expand Down
19 changes: 2 additions & 17 deletions github-org-artichoke/templates/audit-workflow-ruby-rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,12 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust toolchain
run: |
echo "::group::rustup toolchain install"
rustup toolchain install stable --profile minimal
echo "::endgroup::"
echo "::group::set default toolchain"
rustup default stable
echo "::endgroup::"
echo "::group::rustup version"
rustup -Vv
echo "::endgroup::"
echo "::group::rustc version"
rustc -Vv
echo "::endgroup::"
echo "::group::cargo version"
cargo version --verbose
echo "::endgroup::"
uses: artichoke/setup-rust/audit@v1

- name: Generate Cargo.lock
run: |
if [[ ! -f "Cargo.lock" ]]; then
cargo +stable generate-lockfile --verbose
cargo generate-lockfile --verbose
fi
- uses: EmbarkStudios/cargo-deny-action@v1
Expand Down
2 changes: 1 addition & 1 deletion modules/update-github-repository-file/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
output "branch_href" {
description = "Link to the newly-created branch"
value = join("/", [
"https://github.com/",
"https://github.com",
var.organization,
var.repository,
"tree",
Expand Down

0 comments on commit 5289869

Please sign in to comment.