Merge pull request #6884 from projectdiscovery/parthmalhotra-patch-1

Generate Checksum file for cves.json
patch-1
Parth Malhotra 2023-03-13 19:05:32 +05:30 committed by GitHub
commit 97239ddf67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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