You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/code-security/tutorials/secure-your-dependencies/customizing-your-dependency-review-action-configuration.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,16 +73,16 @@ You can block code containing vulnerable dependencies from ever being merged by
73
73
74
74
## Step 3: Adding licenses to block
75
75
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.
77
77
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:
79
79
80
80
```yaml copy
81
81
- name: 'Dependency Review'
82
82
uses: actions/dependency-review-action@v4
83
83
with:
84
84
fail-on-severity: moderate
85
-
deny-licenses: LGPL-2.0, BSD-2-Clause
85
+
allow-licenses: LGPL-2.0, BSD-2-Clause
86
86
```
87
87
88
88
## Step 4: Adding scopes
@@ -96,7 +96,7 @@ Finally, we'll use the `fail-on-scopes` option to prevent merging vulnerable dep
0 commit comments