Skip to content

Commit

Permalink
lib: finalize debug setup
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS committed Dec 13, 2023
1 parent 493b1ce commit a727b2e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ jobs:
matrix: ${{ fromJson(needs.check.outputs.CVEs) }}
max-parallel: 1
steps:
- name: Install-${{ matrix.cveID }}
run: |
echo "Running ${{ matrix }}"
# - uses: actions/checkout@v3
# - uses: dblock/create-a-github-issue@v3
# with:
# update_existing: false
# search_existing: all
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CVE_ID: ${{ matrix }}
# ACTION_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- uses: actions/checkout@v3
- uses: dblock/create-a-github-issue@v3
with:
update_existing: false
search_existing: all
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CVE_ID: ${{ matrix.cveID }}
ACTION_URL: "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,11 @@ async function isCVEPublished (cveId) {
}

async function main () {
debugger
loadETag()
const coreIndex = await getCoreIndex()
// TODO(rafaelgss): we can use a "local" cache to avoid requesting NVD CVEs
// already checked, since true states will never change
let idx = 114 // starting on 2020 CVEs
let idx = 66 // starting on 2020 CVEs
const lastIdx = +Object.keys(coreIndex)[Object.keys(coreIndex).length -1]
const unpublishedCVEs = []
while (idx < lastIdx) {
Expand All @@ -103,7 +102,6 @@ async function main () {
if (!published) {
unpublishedCVEs.push({ cveID: cve })
core.warning(`⚠️ ${cve} wasn't published.`)
break
}
// delay greater than 0.6s is required by NVD API
// 10s is to guarantee rate limit won't be reached
Expand Down

0 comments on commit a727b2e

Please sign in to comment.