Skip to content

reports/scorecard: rm scope.json to enable auto-discovery #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

justaugustus
Copy link
Member

@justaugustus justaugustus commented Mar 5, 2025

Follow-up from #12, fixes https://github.com/bloomberg/.github/actions/runs/13666767888/job/38209486218:

Run ossf/scorecard-monitor@a3a9c4cfa0684480ec5f86fa178fc22c4394b69e
  with:
    scope: reports/scorecard/scope.json
    database: reports/scorecard/database.json
    report: reports/scorecard/report.md
    auto-commit: false
    auto-push: false
    generate-issue: true
    github-token: ***
    discovery-enabled: true
    discovery-orgs: bloomberg
    issue-title: OpenSSF Scorecard Report Updated!
    report-start-tag: <!-- OPENSSF-SCORECARD-MONITOR:START -->
    report-end-tag: <!-- OPENSSF-SCORECARD-MONITOR:END -->
    max-request-in-parallel: 10
    render-badge: false
    report-tool: scorecard-visualizer
  env:
    ORG_LIST: bloomberg
    TARGET_BRANCH: main
  
Checking if scope file exists...
Starting discovery for the organizations bloomberg...
/home/runner/work/_actions/ossf/scorecard-monitor/a3a9c4cfa0684480ec5f86fa178fc22c4394b69e/dist/index.js:47222
      newReposInScope = organizationRepos[org].filter(repo => !scope[platform][org].included.includes(repo) && !scope[platform][org].excluded.includes(repo))
                                                                                             ^
TypeError: Cannot read properties of undefined (reading 'includes')
    at /home/runner/work/_actions/ossf/scorecard-monitor/a3a9c4cfa0684480ec5f86fa178fc22c4394b69e/dist/index.js:47222:94
    at Array.filter (<anonymous>)
    at generateScope (/home/runner/work/_actions/ossf/scorecard-monitor/a3a9c4cfa0684480ec5f86fa178fc22c4394b69e/dist/index.js:47222:48)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async run (/home/runner/work/_actions/ossf/scorecard-monitor/a3a9c4cfa0684480ec5f86fa178fc22c4394b69e/dist/index.js:49456:13)
Node.js v20.18.0

@justaugustus justaugustus changed the title reports/scorecard: rm scope.json to enable auto-discovery reports/scorecard: rm scope.json to enable auto-discovery Mar 5, 2025
@justaugustus justaugustus merged commit 7d87afb into bloomberg:main Mar 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant