diff --git a/.github/workflows/cve2json.yml b/.github/workflows/cve2json.yml index d389ef699f..405385aa8f 100644 --- a/.github/workflows/cve2json.yml +++ b/.github/workflows/cve2json.yml @@ -6,6 +6,7 @@ on: - main paths: - 'cves/**' + workflow_dispatch: # allows manual triggering of the workflow jobs: cve2json: @@ -18,16 +19,17 @@ jobs: go-version: 1.19 check-latest: true - - name: run yaml2json.go to generate cves.json + - name: Run yaml2json.go to generate cves.json run: | go env -w GO111MODULE=off go get gopkg.in/yaml.v3 go run .github/scripts/yaml2json.go $GITHUB_WORKSPACE/cves/ cves.json + md5sum cves.json | cut -d' ' -f1 > cves.json-checksum.txt - name: Commit files run: | git pull - git add cves.json + git add cves.json cves.json-checksum.txt git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -m "Auto Generated cves.json [$(date)] :robot:" -a