added cvss level check
This commit is contained in:
parent
ad83ebcb82
commit
9e2d9d6cc8
1 changed files with 3 additions and 1 deletions
4
.github/workflows/maven.yml
vendored
4
.github/workflows/maven.yml
vendored
|
|
@ -22,9 +22,11 @@ jobs:
|
|||
id: metadata
|
||||
uses: dependabot/fetch-metadata@v2
|
||||
with:
|
||||
alert-lookup: true
|
||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: Enable auto-merge for Dependabot PRs
|
||||
if: steps.metadata.outputs.update-type != 'version-update:semver-major' # && cvss level > 0
|
||||
# if: steps.metadata.outputs.update-type != 'version-update:semver-major' && cvss level > 0
|
||||
if: steps.metadata.outputs.update-type != 'version-update:semver-major' && steps.dependabot-metadata.outputs.cvss != 0
|
||||
run: gh pr merge --auto --merge "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{github.event.pull_request.html_url}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue