-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (47 loc) · 1.53 KB
/
onefuzz-workflow.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright (c) Open Enclave SDK contributors.
# Licensed under the MIT License.
name: Onefuzz Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-18.04
container:
image: oeciteam/oetools-full-18.04
steps:
- name: Checkout repository
uses: actions/checkout@v1
with:
submodules: recursive
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install pip
run: |
sudo -H python3 -m pip install --upgrade pip
- name: Install CMake
run: |
sudo -H python3 -m pip install cmake
- name: build
run: |
./build.sh -c -i -d
- name: submit onefuzz job
env:
ONEFUZZ_ENDPOINT: ${{ secrets.onefuzz_endpoint }}
ONEFUZZ_CLIENT_ID: ${{ secrets.onefuzz_client_id }}
ONEFUZZ_CLIENT_SECRET: ${{ secrets.onefuzz_client_secret }}
OE_SEC_PAT: ${{ secrets.oe_sec_pat }}
OE_SEC_ADMIN: ${{ secrets.oe_sec_admin }}
run: |
set -ex
sudo -H python3 -m pip install onefuzz==2.23.0
sed -i s/OE_SEC_ADMIN/${OE_SEC_ADMIN}/ .github/workflows/github-issues.json
sed -i s/OE_SEC_PAT/${OE_SEC_PAT}/ .github/workflows/github-issues.json
onefuzz config --endpoint $ONEFUZZ_ENDPOINT --client_id $ONEFUZZ_CLIENT_ID --client_secret $ONEFUZZ_CLIENT_SECRET
./src/dynamic/scripts/onefuzz/run.sh