Skip to content

Commit e9b464a

Browse files
committed
Add documentation #12
Signed-off-by: tdruez <[email protected]>
1 parent 7ccccf7 commit e9b464a

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

.github/workflows/scan-codebase.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
with:
1010
path: scancode-inputs
1111
- name: Run scancode-action from current branch
12-
uses: ./scancode-inputs/action.yml
12+
uses: ./scancode-inputs
1313
with:
1414
pipelines: "scan_codebase"
1515
check-compliance: true

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Workflows.
2121
- [Choose the output formats](#choose-the-output-formats)
2222
- [Provide download URLs inputs](#provide-download-urls-inputs)
2323
- [Fetch pipelines inputs](#fetch-pipelines-inputs)
24+
- [Check for compliance issues](#check-for-compliance-issues)
2425
- [Define a custom project name](#define-a-custom-project-name)
2526
- [Install ScanCode.io from a repository branch](#install-scancodeio-from-a-repository-branch)
2627
- [Where does the scan results go?](#where-does-the-scan-results-go)
@@ -89,8 +90,6 @@ Workflows examples.
8990
9091
### Scan repo codebase
9192
92-
TODO: Why, file only!
93-
9493
```yaml
9594
steps:
9695
- uses: actions/checkout@v4
@@ -163,6 +162,20 @@ For details on setting up and configuring your own instance, please refer to the
163162
pipelines: "scan_single_package"
164163
```
165164

165+
### Check for compliance issues
166+
167+
```yaml
168+
- uses: nexB/scancode-action@alpha
169+
with:
170+
check-compliance: true
171+
compliance-fail-level: "WARNING"
172+
```
173+
174+
> [!NOTE]
175+
> This feature requires to provide Project policies.
176+
> For details on setting up and configuring your own instance, please refer to the
177+
> [ScanCode.io Policies documentation](https://scancodeio.readthedocs.io/en/latest/policies.html).
178+
166179
### Define a custom project name
167180

168181
```yaml

0 commit comments

Comments
 (0)