Skip to content

Control Table Data Ingestion #1080

Control Table Data Ingestion

Control Table Data Ingestion #1080

name: Control Table Data Ingestion
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
control-table-ingest:
runs-on: ubuntu-latest
name: Control table ingest
steps:
- name: Pull down this repo
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v3
with:
node-version: '14.x'
- name: Ingest and process data
uses: docker://mitre/saf-baseline-ingestion
- name: Commit processed data
run: |
git config --global user.name 'MITRE SAF'
git config --global user.email '[email protected]'
git add ./src/assets/data/baselineProfiles/
git add ./src/assets/data/baselines.json
git add ./src/assets/data/mitre-saf-control-mapping.json
git commit -s -m 'Automated ingestion of profiles' || true
git push "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" HEAD:master
- name: install
run: npm install
- name: build
run: npm run build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./dist