Skip to content

Commit 306376b

Browse files
authored
Merge pull request #16733 from h2oai/rohan/h2o-3/vulnerability-scan-trigger
Add workflow to trigger vulnerability scan on push events
2 parents 1d62380 + 07f46a9 commit 306376b

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# .github/workflows/trigger-vulnerability-scan.yml
2+
name: Trigger Vulnerability Scan
3+
4+
permissions:
5+
contents: read
6+
7+
on:
8+
push:
9+
branches: [master, rel-3.46.0]
10+
workflow_dispatch:
11+
12+
jobs:
13+
trigger:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Trigger Vulnerability Scan
17+
run: |
18+
curl -X POST \
19+
-H "Accept: application/vnd.github+json" \
20+
-H "Authorization: Bearer ${{ secrets.H2O_3_DEVOPS_REPO_TOKEN }}" \
21+
https://api.github.com/repos/h2oai/h2o-3-devops/dispatches \
22+
-d '{"event_type":"h2o3-push","client_payload":{"branch":"${{ github.ref_name }}","sha":"${{ github.sha }}"}}'

0 commit comments

Comments
 (0)