File tree 2 files changed +7
-9
lines changed
2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Checker
3
3
on :
4
4
workflow_dispatch :
5
5
6
+ permissions :
7
+ contents : read
8
+ issues : write
9
+
6
10
jobs :
7
11
check :
8
12
runs-on : ubuntu-latest
@@ -21,19 +25,12 @@ jobs:
21
25
- name : Run validator
22
26
env :
23
27
API_KEY : ${{ secrets.API_KEY }}
24
- DEBUG : ' *'
25
28
run : |
26
29
node index.js
27
30
28
- test :
29
- needs : check
30
- runs-on : ubuntu-latest
31
- steps :
32
- - run : echo "$GITHUB_OUTPUT"
33
-
34
31
create-issues :
35
32
needs : check
36
- if : ${{ always () }}
33
+ if : ${{ success () }}
37
34
runs-on : ubuntu-latest
38
35
strategy :
39
36
matrix : ${{ needs.check.outputs.CVEs }}
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ async function main () {
92
92
const coreIndex = await getCoreIndex ( )
93
93
// TODO(rafaelgss): we can use a "local" cache to avoid requesting NVD CVEs
94
94
// already checked, since true states will never change
95
- let idx = 66 // starting on 2020 CVEs
95
+ let idx = 114 // starting on 2020 CVEs
96
96
const lastIdx = + Object . keys ( coreIndex ) [ Object . keys ( coreIndex ) . length - 1 ]
97
97
const unpublishedCVEs = [ ]
98
98
while ( idx < lastIdx ) {
@@ -103,6 +103,7 @@ async function main () {
103
103
if ( ! published ) {
104
104
unpublishedCVEs . push ( cve )
105
105
core . warning ( `⚠️ ${ cve } wasn't published.` )
106
+ break
106
107
}
107
108
// delay greater than 0.6s is required by NVD API
108
109
// 10s is to guarantee rate limit won't be reached
You can’t perform that action at this time.
0 commit comments