generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68cd9c5
commit c4068a9
Showing
3 changed files
with
10 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,11 @@ This action will run `cargo-deny check` and report failure if any banned crates | |
|
||
The action has three optional inputs | ||
|
||
* `rust-version`: The rust/cargo version to use, updated before cargo-deny is run. Defaults to the version in the image, which is currently **1.65.0**. | ||
* `rust-version`: The rust/cargo version to use, updated before cargo-deny is run. Defaults to the version in the image, which is currently **1.71.0**. | ||
* `log-level`: The log level to use for `cargo-deny`, default is `warn` | ||
* `command`: The command to use for `cargo-deny`, default is `check` | ||
* `arguments`: The argument to pass to `cargo-deny`, default is `--all-features`. See [Common Options](https://embarkstudios.github.io/cargo-deny/cli/common.html) for a list of the available options. | ||
* `manifest-path`: The path to a Cargo.toml file to use as the root. Defaults to `./Cargo.toml`. Note this argument is always passed, so you can't have it in `arguments` as well, just set it it to the value you had in `arguments` if you were using it there. | ||
* `command-arguments` The argument to pass to the command, default is emtpy. See options for [each command](https://embarkstudios.github.io/cargo-deny/cli/index.html). | ||
* `credentials` This argument stores the credentials in the file `$HOME/git-credentials`, and configures git to use it. The credential must match the format `https://user:[email protected]` | ||
|
||
|
@@ -52,6 +53,7 @@ jobs: | |
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
log-level: warn | ||
manifest-path: ./Cargo.toml | ||
command: check | ||
arguments: --all-features | ||
command-arguments: "" | ||
|
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 |
---|---|---|
|
@@ -15,11 +15,15 @@ then | |
git config --global --replace-all url.https://github.com/.insteadOf ssh://[email protected]/ | ||
git config --global --add url.https://github.com/.insteadOf [email protected]: | ||
|
||
echo $2 > $HOME/.git-credentials | ||
chmod 600 $HOME/.git-credentials | ||
echo "$2" > "$HOME/.git-credentials" | ||
chmod 600 "$HOME/.git-credentials" | ||
fi | ||
|
||
shift | ||
shift | ||
|
||
# Due to how github actions run containers we need to explicitly force colors | ||
# as TTY detection fails inside them | ||
export CARGO_TERM_COLOR="always" | ||
|
||
cargo-deny $* |