Skip to content

Fix auditree action

Fix auditree action #6

name: Run Auditree Checks
on:
workflow_dispatch:
pull_request:
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
- name: Check 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: check > doc/compliance/oscal/assessment-results/auditree/assessment-results.json
- name: Save results
uses: actions/upload-artifact@v4
with:
name: auditree_assessment_results
path: doc/compliance/oscal/assessment-results/auditree