Skip to content

Commit 0f2b7c7

Browse files
docs: replace deny-list with allow-list
1 parent 6bb27d3 commit 0f2b7c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/code-security/tutorials/secure-your-dependencies/customizing-your-dependency-review-action-configuration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,16 @@ You can block code containing vulnerable dependencies from ever being merged by
7373

7474
## Step 3: Adding licenses to block
7575

76-
Vulnerabilities aren’t the only reason you might want to block a dependency. If your organization has restrictions on what sorts of licenses you can use, you can use dependency review to enforce those policies with the `deny-licenses` option. In this step, we will add a customization that will break the build if the pull request introduces a dependency that contains the LGPL-2.0 or BSD-2-Clause license.
76+
Vulnerabilities aren’t the only reason you might want to block a dependency. If your organization has restrictions on what sorts of licenses you can use, you can use dependency review to enforce those policies with the `allow-licenses` option. In this step, we will add a customization that will break the build if the pull request introduces a dependency that not contain the LGPL-2.0 or BSD-2-Clause license.
7777

78-
1. Add the `deny-licenses` option to the end of the `dependency-review.yml` file:
78+
1. Add the `allow-licenses` option to the end of the `dependency-review.yml` file:
7979

8080
```yaml copy
8181
- name: 'Dependency Review'
8282
uses: actions/dependency-review-action@v4
8383
with:
8484
fail-on-severity: moderate
85-
deny-licenses: LGPL-2.0, BSD-2-Clause
85+
allow-licenses: LGPL-2.0, BSD-2-Clause
8686
```
8787

8888
## Step 4: Adding scopes
@@ -96,7 +96,7 @@ Finally, we'll use the `fail-on-scopes` option to prevent merging vulnerable dep
9696
uses: actions/dependency-review-action@v4
9797
with:
9898
fail-on-severity: moderate
99-
deny-licenses: LGPL-2.0, BSD-2-Clause
99+
allow-licenses: LGPL-2.0, BSD-2-Clause
100100
fail-on-scopes: development
101101
```
102102

@@ -126,7 +126,7 @@ jobs:
126126
uses: actions/dependency-review-action@v4
127127
with:
128128
fail-on-severity: moderate
129-
deny-licenses: LGPL-2.0, BSD-2-Clause
129+
allow-licenses: LGPL-2.0, BSD-2-Clause
130130
fail-on-scopes: development
131131
```
132132

0 commit comments

Comments
 (0)