Skip to content

Commit f346771

Browse files
committed
debug mode
1 parent 6cb2b6c commit f346771

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/checker.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Checker
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
issues: write
9+
610
jobs:
711
check:
812
runs-on: ubuntu-latest
@@ -21,19 +25,12 @@ jobs:
2125
- name: Run validator
2226
env:
2327
API_KEY: ${{ secrets.API_KEY }}
24-
DEBUG: '*'
2528
run: |
2629
node index.js
2730
28-
test:
29-
needs: check
30-
runs-on: ubuntu-latest
31-
steps:
32-
- run: echo "$GITHUB_OUTPUT"
33-
3431
create-issues:
3532
needs: check
36-
if: ${{ always() }}
33+
if: ${{ success() }}
3734
runs-on: ubuntu-latest
3835
strategy:
3936
matrix: ${{ needs.check.outputs.CVEs }}

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async function main () {
9292
const coreIndex = await getCoreIndex()
9393
// TODO(rafaelgss): we can use a "local" cache to avoid requesting NVD CVEs
9494
// already checked, since true states will never change
95-
let idx = 66 // starting on 2020 CVEs
95+
let idx = 114 // starting on 2020 CVEs
9696
const lastIdx = +Object.keys(coreIndex)[Object.keys(coreIndex).length -1]
9797
const unpublishedCVEs = []
9898
while (idx < lastIdx) {
@@ -103,6 +103,7 @@ async function main () {
103103
if (!published) {
104104
unpublishedCVEs.push(cve)
105105
core.warning(`⚠️ ${cve} wasn't published.`)
106+
break
106107
}
107108
// delay greater than 0.6s is required by NVD API
108109
// 10s is to guarantee rate limit won't be reached

0 commit comments

Comments
 (0)