forked from gdg-x/aura
-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (37 loc) · 1.26 KB
/
control-table-data-ingestion.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
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