.github/workflows/generate.yaml #2950
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '20 * * * MON-FRI' | |
jobs: | |
generate: | |
permissions: | |
contents: write | |
name: "Generate NVD overrides from enriched records" | |
runs-on: ubuntu-latest | |
container: | |
image: python:3-alpine | |
steps: | |
- name: Install OS dependencies | |
run: apk add --no-cache bash git | |
- name: Install python dependencies | |
run: pip install check-jsonschema cpe | |
- name: Configure git | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Generate NVD override records | |
run: ./scripts/generate.sh | |
- name: Verify overrides json schema | |
run: check-jsonschema --schemafile schema/overrides.schema.json data/**/*.json | |
- name: Commit changes | |
run: | | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
git config user.name "github-actions[bot]" | |
./scripts/commit.sh | |
git push |