Teppei Fukuda ecaf1143a9
BREAKING CHANGE: extract Red Hat security advisories to separate repository (#217)
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io>
2023-06-22 10:20:19 +03:00

44 lines
1.1 KiB
YAML

name: Update vuln-list-redhat repo
on:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
update:
name: Update vuln-list-redhat
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
VULN_LIST_DIR: "vuln-list-redhat"
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Check out vuln-list-redhat repo
uses: actions/checkout@v3
with:
repository: ${{ github.repository_owner }}/${{ env.VULN_LIST_DIR }}
token: ${{ secrets.ACCESS_TOKEN }}
path: ${{ env.VULN_LIST_DIR }}
- name: Setup github user email and name
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
- name: Compile vuln-list-update
run: go build -o vuln-list-update .
- if: always()
name: Red Hat OVALv2
run: ./update.sh redhat-oval "Red Hat OVAL v2"
- if: always()
name: Red Hat Security Data API
run: ./update.sh redhat "Red Hat Security Data API"