Skip to content

Commit 1129485

Browse files
authored
Support show-openssf-scorecard input set from var (#11)
1 parent f81af2b commit 1129485

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/dependency-review-vulnerability-license.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ name: Dependency Review - License/Vulns
44
# This workflow analyzes dependencies introduced by pull requests to help identify security vulnerabilities
55
# and for invalid dependency licenses.
66
#
7-
# To override the default configuration preset, set the `DEPENDENCY_REVIEW_CONFIG_PRESET` variable in the repository settings.
8-
# The default preset is "license-deny-vulnerability-high". This preset has this behavior:
7+
# The default config-preset is "license-deny-vulnerability-high". This preset has this behavior:
98
#
109
# Fail if a dependency is found with a license that is in the deny_licenses list and fails if vulnerabilities are found in the
1110
# dependency tree with a high severity or greater.
1211
#
13-
# To override the config preset, set the DEPENDENCY_REVIEW_CONFIG_PRESET repo variable using the gh cli:
12+
# To override the config-preset, set the DEPENDENCY_REVIEW_CONFIG_PRESET repo variable using the gh cli:
1413
# gh variable set DEPENDENCY_REVIEW_CONFIG_PRESET --body "license-deny-vulnerability-high"
14+
#
15+
# To override the show-openssf-scorecard option, set the DEPENDENCY_REVIEW_SHOW_OPENSSF_SCORECARD repo variable using the gh cli:
16+
# gh variable set DEPENDENCY_REVIEW_SHOW_OPENSSF_SCORECARD --body "false"
1517
###
1618

1719
on:
@@ -38,3 +40,4 @@ jobs:
3840
uses: smartcontractkit/.github/actions/dependency-review@dependency-review/v2
3941
with:
4042
config-preset: ${{ vars.DEPENDENCY_REVIEW_CONFIG_PRESET || 'license-deny-vulnerability-high' }}
43+
show-openssf-scorecard: ${{ vars.DEPENDENCY_REVIEW_SHOW_OPENSSF_SCORECARD || 'true' }}

0 commit comments

Comments
 (0)