-
Notifications
You must be signed in to change notification settings - Fork 262
37 lines (35 loc) · 1.43 KB
/
compfuzzci_fuzz.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow is triggered on PR being opened, synced, reopened, closed.
# It dispatches workflow on CompFuzzCI repository, where fuzzing of the PR is handled.
# For problems or suggestions, contact [email protected]
name: Fuzzing on PR
on:
pull_request_target:
branches:
- master
jobs:
FuzzOnPR:
if: github.event.pull_request.base.ref == 'master' &&
(github.event.pull_request.author_association == 'COLLABORATOR' ||
github.event.pull_request.author_association == 'MEMBER' ||
github.event.pull_request.author_association == 'OWNER')
runs-on: ubuntu-latest
steps:
- name: Trigger CompFuzzCI
uses: actions/github-script@v7
with:
github-token: ${{ secrets.COMPFUZZCI_PAT }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'CompFuzzCI',
repo: 'DafnyCompilerFuzzer',
workflow_id: 'fuzz.yaml',
ref: 'main',
inputs: {
pr: '${{github.event.pull_request.number}}',
author: '${{github.event.pull_request.user.login}}',
branch: '${{github.event.pull_request.head.ref}}',
head_sha: '${{github.event.pull_request.head.sha}}',
duration: '3600',
instance: '2'
}
})