added permissions sections and alert-lookup variable to actions.yml
This commit is contained in:
parent
7bdd41ce23
commit
7e721b5822
1 changed files with 6 additions and 0 deletions
6
.github/workflows/actions.yml
vendored
6
.github/workflows/actions.yml
vendored
|
|
@ -7,12 +7,18 @@ permissions:
|
|||
|
||||
jobs:
|
||||
dependabot:
|
||||
permissions:
|
||||
pull-requests: read
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'owner/my_repo'
|
||||
steps:
|
||||
- name: Dependabot metadata
|
||||
id: dependabot-metadata
|
||||
uses: dependabot/fetch-metadata@v2
|
||||
with:
|
||||
alert-lookup: true
|
||||
compat-lookup: true
|
||||
github-token: "${{ secrets.PAT_TOKEN }}"
|
||||
- name: Enable auto-merge for Dependabot PRs
|
||||
if: (steps.dependabot-metadata.outputs.cvss == true && update_types == 'minor' || 'patch')
|
||||
run: gh pr merge --auto --merge "$PR_URL"
|
||||
|
|
|
|||
Loading…
Reference in a new issue