generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 34
/
action.yml
66 lines (63 loc) · 1.72 KB
/
action.yml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "cargo-deny"
description: "Help manage Cargo crate dependencies and validate licenses"
author: "Embark Studios"
branding:
icon: "slash"
color: "red"
inputs:
command:
description: "The command to run with cargo-deny"
required: false
default: "check"
arguments:
description: "The arguments to pass to cargo-deny"
required: false
default: "--all-features"
command-arguments:
description: "The arguments to pass to the command"
required: false
default: ""
manifest-path:
description: "Repo root relative path to the Cargo manifest to check"
required: false
default: "./Cargo.toml"
log-level:
description: "The log level for cargo-deny"
required: false
default: "warn"
rust-version:
description: "The Rust version that is updated to before running cargo deny"
required: false
default: ""
credentials:
description: "The git credentials for credential.helper store using github username and github's private access token (PAT)"
required: false
default: ""
ssh-key:
description: "Set the used ssh key"
required: false
default: ""
ssh-known-hosts:
description: "Set ssh known hosts"
required: false
default: ""
use-git-cli:
description: "Set CARGO_NET_GIT_FETCH_WITH_CLI"
required: false
default: "false"
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.rust-version }}
- ${{ inputs.credentials }}
- ${{ inputs.ssh-key }}
- ${{ inputs.ssh-known-hosts }}
- ${{ inputs.use-git-cli }}
- --log-level
- ${{ inputs.log-level }}
- --manifest-path
- ${{ inputs.manifest-path }}
- ${{ inputs.arguments }}
- ${{ inputs.command }}
- ${{ inputs.command-arguments }}