File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 11name : Security Monitor GitHub Action
22
33on :
4- pull_request :
4+ pull_request_target :
55 types :
66 - opened
77 - reopened
88 - synchronize
9- - review_requested
109 - edited
1110 branches :
1211 - " *"
1312
14- concurrency : security-monitor
15-
1613jobs :
1714 security_monitor :
15+ if : ${{ !contains(github.head_ref, 'dependabot') }}
1816 runs-on : ubuntu-latest
1917 name : Security Monitor
2018 steps :
2321 with :
2422 gh-pat : ${{ secrets.security_monitor }} # github personal access token
2523 action-user : ${{ secrets.security_monitor_user }}
24+
25+ pass_dependabot_status :
26+ if : ${{ contains(github.head_ref, 'dependabot') }}
27+ runs-on : ubuntu-latest
28+ permissions :
29+ statuses : write
30+ name : Pass security-monitor status check for dependabot
31+ steps :
32+ - name : pass security-monitor status check for dependabot
33+ uses : actions/github-script@v3
34+ with :
35+ github-token : ${{ secrets.GITHUB_TOKEN }}
36+ script : |
37+ await github.repos.createCommitStatus({
38+ context: 'security-monitor',
39+ owner: context.repo.owner,
40+ repo: context.repo.repo,
41+ sha: context.payload.pull_request.head.sha,
42+ state: 'success'
43+ });
You can’t perform that action at this time.
0 commit comments