Skip to content

Commit 2da7d27

Browse files
committed
otp scan PRs for vulnerabilities
- scan PRs for vendor vulnerabilities. - the submission of the vendor SBOM should happen only on push events. - vulnerability scanning of dependencies must happen on a per PR basis, and on a per push basis (although Dependatbot should inform us of this).
1 parent d512808 commit 2da7d27

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/main.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,6 @@ jobs:
850850
vendor-analysis:
851851
name: Vendor Dependency Analysis
852852
runs-on: ubuntu-latest
853-
if: github.event_name == 'push'
854853
needs:
855854
- sbom
856855
- pack
@@ -878,8 +877,22 @@ jobs:
878877
879878
# allows Dependabot to give us alert of the vendor libraries that use semantic versioning
880879
- name: Upload SBOM to Github Dependency API
880+
if: github.event_name == 'push'
881881
uses: advanced-security/spdx-dependency-submission-action@5530bab9ee4bbe66420ce8280624036c77f89746 # ratchet:advanced-security/[email protected]
882882

883+
# check that PRs do not introduce vulnerabilities in vendor dependencies
884+
- name: 'Dependency Review'
885+
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 #ratchet:actions/dependency-review-action@v4
886+
with:
887+
vulnerability-check: true
888+
fail-on-severity: low # fail if there are dependency issues with low severity impact.
889+
license-check: false # skip, we have our license process
890+
comment-summary-in-pr: never # displays summary as a comment. we could test with 'on-failure'
891+
warn-only: false # do not warn only (fail instead)
892+
show-openssf-scorecard: true # applied to dependencies changed in this PR, not to OTP
893+
warn-on-openssf-scorecard-level: 3 # scorecard level in which a dependency is considered problematic
894+
895+
883896
## If this is an "OTP-*" tag that has been pushed we do some release work
884897
release:
885898
name: Release Erlang/OTP

0 commit comments

Comments
 (0)