generated from EmbarkStudios/opensource-template
-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathaction.yml
51 lines (48 loc) · 1.35 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
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: ""
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.rust-version }}
- ${{ inputs.credentials }}
- --log-level
- ${{ inputs.log-level }}
- --manifest-path
- ${{ inputs.manifest-path }}
- ${{ inputs.arguments }}
- ${{ inputs.command }}
- ${{ inputs.command-arguments }}