-
Notifications
You must be signed in to change notification settings - Fork 17
/
action.yml
57 lines (54 loc) · 2.1 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
name: Official FOSSA Action
description: Find license compliance and security issues in your applications with FOSSA
author: Solomon Rubin
inputs:
api-key:
description: >-
Your FOSSA API key.
required: true
run-tests:
description: >-
If set to `true` FOSSA will run the `fossa test` command.
default: false
container:
description: >-
A container name or OCI image path. Set to use FOSSA's container scanning functionality. This will run `fossa container analyze` (default behavior) and `fossa container test` (if used in combination with `run-tests`).
required: false
endpoint:
description: >-
Endpoint passed to FOSSA CLI. Defaults to `app.fossa.com`.
required: false
branch:
description: >-
Override the detected FOSSA project branch. If running FOSSA analysis on a
Pull Request, as a start you can use the contexts `github.ref` or `github.ref_name`.
required: false
project:
description: >-
Override the detected FOSSA project name. If running FOSSA analysis on a
Pull Request, as a start you can use the contexts `github.ref` or `github.ref_name`.
required: false
team:
description: >-
Allows you to specify the team for your project. It uses the team name, just as `--team` in the CLI. This will only work when creating a project.
required: false
policy:
description: >-
Allows you to specify the policy for your project. It uses the policy name, just as `--policy` in the CLI. This will only work when creating a project.
debug:
description: >-
Run all FOSSA commands in debug mode. Running `fossa analyze` in debug
mode will generate a debug bundle that can be uploaded as a build artifact
after this action completes.
default: false
test-diff-revision:
description: >-
Run fossa test with the `--diff <revision>` option, which checks if there are new issues relative to `<revision>`.
Requires `run-tests` to be set in order to take effect.
required: false
runs:
using: node20
main: dist/index.js
branding:
icon: 'check-circle'
color: 'green'