Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5558c35

Browse files
committed
Address discrepancy between docs and reality
The documentation used to say that you needed to transform keys in external config files from using `-` to `_`, but in reality the code transforms `-` to `_` regardless of where they occur. See 4b4ec08 Closes #909
1 parent 89c7383 commit 5558c35

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

README.md

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
# dependency-review-action
22

3-
- [Overview](#overview)
4-
- [Installation](#installation)
5-
- [Configuration](#configuration)
6-
- [Using dependency review action to block a pull request from being merged](#using-dependency-review-action-to-block-a-pull-request-from-being-merged)
7-
- [Outputs](#outputs)
8-
- [Getting help](#getting-help)
9-
- [Contributing](#contributing)
10-
- [License](#license)
3+
- [dependency-review-action](#dependency-review-action)
4+
- [Overview](#overview)
5+
- [Viewing the results](#viewing-the-results)
6+
- [Installation](#installation)
7+
- [Installation (standard)](#installation-standard)
8+
- [Installation (GitHub Enterprise Server)](#installation-github-enterprise-server)
9+
- [Configuration](#configuration)
10+
- [Configuration options](#configuration-options)
11+
- [Configuration methods](#configuration-methods)
12+
- [Option 1: Using inline configuration](#option-1-using-inline-configuration)
13+
- [Option 2: Using an external configuration file](#option-2-using-an-external-configuration-file)
14+
- [`OTHER` in license strings](#other-in-license-strings)
15+
- [Further information](#further-information)
16+
- [Using dependency review action to block a pull request from being merged](#using-dependency-review-action-to-block-a-pull-request-from-being-merged)
17+
- [Outputs](#outputs)
18+
- [Getting help](#getting-help)
19+
- [Contributing](#contributing)
20+
- [License](#license)
1121

1222
## Overview
1323

@@ -206,15 +216,12 @@ You can use an external configuration file to specify settings for this action.
206216
3. Create the configuration file in the path you specified for `config-file`.
207217
4. In the configuration file, specify your chosen settings.
208218
```yaml
209-
fail_on_severity: 'critical'
210-
allow_licenses:
219+
fail-on-severity: 'critical'
220+
allow-licenses:
211221
- 'GPL-3.0'
212222
- 'BSD-3-Clause'
213223
- 'MIT'
214224
```
215-
> [!NOTE]
216-
> For external configuration files, the option names use underscores instead of dashes.
217-
> Example: `fail_on_severity`
218225

219226
#### `OTHER` in license strings
220227

0 commit comments

Comments
 (0)