forked from aws/s2n-tls
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (46 loc) · 1.51 KB
/
gha_failure_monitor.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
name: GHA Montior
on:
schedule:
- cron: '0 * * * *'
jobs:
gha_monitor_fuzz:
if: contains(github.repository, 'awslabs/s2n')
env:
SCRIPT_PATH: "./.github/gha_monitor"
runs-on: ubuntu-latest
strategy:
matrix:
repos:
- {ORG: "awslabs", REPO: "private-s2n-fuzz"}
- {ORG: "awslabs", REPO: "private-s2n-cbmc"}
- {ORG: "awslabs", REPO: "s2n"}
- {ORG: "dougch", REPO: "s2n"}
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: '3.x'
architecture: 'x64'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.SNS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SNS_AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r $SCRIPT_PATH/requirements.txt
- name: GitHub failure check
run: |
cd $SCRIPT_PATH/
python3 -m gha_monitor
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPO: ${{ matrix.repos.REPO }}
GITHUB_REPO_ORG: ${{ matrix.repos.ORG }}
# Set the time range the monitor should be looking at.
# Should be slightly longer than cron frequency (can be a float).
MONITOR_FREQ_IN_HOURS: "1.1"