-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
actions-rs
with maintained alternatives (#133)
* ci: Replace actions-rs with maintained alternatives * ci: Revert back cargo test to original cargo build * ci: NIT
- Loading branch information
Showing
5 changed files
with
89 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
name: Security Audit | ||
name: Security Audit (advisories, sources) | ||
permissions: | ||
contents: read | ||
issues: write | ||
|
||
on: | ||
push: | ||
# Check immediately if dependencies are altered | ||
paths: | ||
- "**/Cargo.toml" | ||
# Check also at midnight each day | ||
schedule: | ||
- cron: '0 0 * * *' # Midnight of each day | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
security_audit: | ||
name: Security Audit | ||
cargo-deny: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
checks: | ||
- advisories | ||
- bans sources | ||
|
||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
with: | ||
persist-credentials: false | ||
ref: master | ||
|
||
- name: Install stable toolchain | ||
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Install cargo audit | ||
run: cargo install cargo-audit | ||
|
||
- name: Run cargo audit | ||
uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 | ||
- uses: EmbarkStudios/cargo-deny-action@8371184bd11e21dcf8ac82ebf8c9c9f74ebf7268 | ||
with: | ||
command: audit | ||
args: --deny warnings | ||
command: check ${{ matrix.checks }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[graph] | ||
targets = [ | ||
"x86_64-unknown-linux-gnu", | ||
"x86_64-unknown-linux-musl", | ||
"x86_64-apple-darwin", | ||
"x86_64-pc-windows-msvc", | ||
] | ||
|
||
[advisories] | ||
yanked = "deny" | ||
ignore = [] | ||
|
||
[bans] | ||
multiple-versions = "allow" # We don't maintain Cargo lockfile, so this isn't really feasible to deny | ||
wildcards = "deny" # Dependencies should not have be specified with '*' | ||
|
||
[sources] | ||
unknown-registry = "deny" # crates.io is allowed and a known register by default | ||
unknown-git = "deny" |