-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.07 KB
/
auditree-validation.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
name: Run Auditree Checks
on:
workflow_dispatch:
schedule:
# cron format: 'minute hour dayofmonth month dayofweek'
# this will run at 11am UTC every day (6am EST / 7am EDT)
- cron: '0 11 * * *'
jobs:
run_auditree:
name: Fetch and check auditree evidence
runs-on: ubuntu-latest
environment: staging
steps:
- uses: actions/checkout@v4
- name: Fetch evidence
uses: ./.github/actions/auditree-cmd
env:
CF_USERNAME: ${{ secrets.CF_USERNAME }}
CF_PASSWORD: ${{ secrets.CF_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.AUDITREE_GITHUB_TOKEN }}
with:
cmd: fetch
email: "ryan.ahearn@gsa.gov"
- name: Check evidence
uses: ./.github/actions/auditree-cmd
env:
GITHUB_TOKEN: ${{ secrets.AUDITREE_GITHUB_TOKEN }}
with:
cmd: -o check
email: "ryan.ahearn@gsa.gov"
- name: Save results
uses: actions/upload-artifact@v4
with:
name: auditree_assessment_results
path: tmp/auditree/auditree.json