Skip to content

Commit 8c00709

Browse files
authored
Use NVD API Key in GH Actions Workflows (#50)
* use nvd api key in GH Actions Workflows * sync go versions amongst GHA workflows
1 parent 24744b9 commit 8c00709

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/cron.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ jobs:
1313
- name: Set up Go 1.x
1414
uses: actions/setup-go@v3
1515
with:
16-
go-version: ^1.19
16+
go-version: ^1.22
1717

1818
- name: Check out code into the Go module directory
1919
uses: actions/checkout@v3
2020

2121
- name: Run croncheck
22+
env:
23+
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
2224
run: go run ./croncheck
2325

2426
- name: The job has failed

.github/workflows/pr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,6 @@ jobs:
2525
run: go test -v ./...
2626

2727
- name: Run croncheck
28+
env:
29+
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
2830
run: go run ./croncheck

0 commit comments

Comments
 (0)