Merge pull request #6884 from projectdiscovery/parthmalhotra-patch-1
Generate Checksum file for cves.jsonpatch-1
commit
97239ddf67
|
@ -6,6 +6,7 @@ on:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- 'cves/**'
|
- 'cves/**'
|
||||||
|
workflow_dispatch: # allows manual triggering of the workflow
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cve2json:
|
cve2json:
|
||||||
|
@ -18,16 +19,17 @@ jobs:
|
||||||
go-version: 1.19
|
go-version: 1.19
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
|
||||||
- name: run yaml2json.go to generate cves.json
|
- name: Run yaml2json.go to generate cves.json
|
||||||
run: |
|
run: |
|
||||||
go env -w GO111MODULE=off
|
go env -w GO111MODULE=off
|
||||||
go get gopkg.in/yaml.v3
|
go get gopkg.in/yaml.v3
|
||||||
go run .github/scripts/yaml2json.go $GITHUB_WORKSPACE/cves/ cves.json
|
go run .github/scripts/yaml2json.go $GITHUB_WORKSPACE/cves/ cves.json
|
||||||
|
md5sum cves.json | cut -d' ' -f1 > cves.json-checksum.txt
|
||||||
|
|
||||||
- name: Commit files
|
- name: Commit files
|
||||||
run: |
|
run: |
|
||||||
git pull
|
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.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
git commit -m "Auto Generated cves.json [$(date)] :robot:" -a
|
git commit -m "Auto Generated cves.json [$(date)] :robot:" -a
|
||||||
|
|
Loading…
Reference in New Issue