GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Implementing OSSF Scorecard · Issue #2 · expressjs/security-wg

Implementing OSSF Scorecard #2

New issue
Copy link
New issue
Copy link
Closed
Closed
Implementing OSSF Scorecard#2
Copy link
Assignees
UlisesGasconinigomarquinez
Labels
OSSF scorecardsecurity-wg-agenda

Description

@UlisesGascon
UlisesGascon
opened on Feb 1, 2024
Issue body actions

Some time ago, we implemented the monitoring and review of the OSSF scorecard in the Node.js org, and it significantly contributed to the improvement of many repositories. I believe adopting a similar approach for Express would be highly beneficial. We've developed tools, such as the OpenSSF Scorecard Monitor and OpenSSF Scorecard Visualizer, along with processes that make handling the evolution of scoring straightforward. Despite initial appearances, the process is quite simple.

Context

The goal of Scorecards is to auto-generate a “security score” for open source projects to help users as they decide the trust, risk, and security posture for their use case. This data can also be used to augment any decision making in an automated fashion when new open source dependencies are introduced inside projects or at organizations. For example, organizations may decide that any new dependency with low scores has to go through additional evaluation. These checks could help mitigate malicious dependencies from getting deployed to production systems like we’ve seen recently with malicious NPM packages.
source: openssf Blog

Resources

  • OpenSSF Scorecard
  • You should use the OpenSSF Scorecard
  • OpenSSF Scorecard API
  • Security Scorecards for Open Source Projects

Next Steps:

  • Define when/how to review the scoring as a team. For example, in Node.js, we conduct this review in every Security WG Meeting. Watch example (minute 04:00 to 10:00) and the dashboard
  • Add the Scorecard pipelines to the projects. View example
  • Improve the scoring by patching the bugs. See example

I'm enthusiastic about leading these changes in the repos. While we may not be familiar with the OSSF Scorecard, we already have scores for most of our projects. Here is a simple dashboard that I auto-generated. The OSSF team is already tracking our projects using a CRON job, but we can easily enrich them and make some simple patches to increase the scoring.

Most of these changes won't require significant alterations and can be performed in isolated PRs, making them easy to review. If we're in agreement, I can start with the Express project to showcase the process. 👍

Reacted by Wes Todd
Reacted by rudd

Activity

Next
  1. dougwilson commented on Feb 2, 2024

    @dougwilson
    dougwilson
    on Feb 2, 2024
    More actions

    If we're in agreement, I can start with the Express project to showcase the process. 👍

    Go for it. And if it makes it amy easier you are always welcome to start with any of the smaller, simplier middleware repos.

    Reacted by Ulises Gascón
  2. UlisesGascon
    added 2 commits that reference this issue on Feb 2, 2024

    chore: add reporting to OSFF Scorecard

    20ebff0

    docs: add OpenSSF Scorecard badge

    7933c3b
  3. UlisesGascon
    transferred this issue fromexpressjs/discussionson Mar 4, 2024
  4. inigomarquinez commented on Mar 5, 2024

    @inigomarquinez
    inigomarquinez
    on Mar 5, 2024
    Member
    More actions

    Good afternoon!

    I've had a chat with @UlisesGascon to tell him that I am interested in contributing to this initiative, as the OpenSSF Scorecard is something that I like and that I have also helped to implement in the Open Source community of the company where I work.

    Reacted by Wes Todd and Ulises Gascón
    Reacted by Wes Todd and Ulises Gascón
  5. UlisesGascon commented on Mar 5, 2024

    @UlisesGascon
    UlisesGascon
    on Mar 5, 2024
    MemberAuthor
    More actions

    Yeah! Welcome aboard @inigomarquinez 🎉

    Reacted by Íñigo Marquínez Prado
  6. carpasse commented on Mar 7, 2024

    @carpasse
    carpasse
    on Mar 7, 2024
    Contributor
    More actions

    Good Morning!

    I've also had a chat with @UlisesGascon and I am interested in contributing to this initiative too.

    Reacted by Ulises Gascón
  7. UlisesGascon commented on Mar 7, 2024

    @UlisesGascon
    UlisesGascon
    on Mar 7, 2024
    MemberAuthor
    More actions

    As discussed with @inigomarquinez, he will champion this initiative 🎉

    Reacted by Íñigo Marquínez Prado
  8. UlisesGascon
    assigned
    inigomarquinez
    on Mar 7, 2024
  9. inigomarquinez commented on Mar 7, 2024

    @inigomarquinez
    inigomarquinez
    on Mar 7, 2024
    Member
    More actions

    Thanks for the opportunity @UlisesGascon !

    Reacted by Ulises Gascón
  10. UlisesGascon
    added
    OSSF scorecard
    on Mar 8, 2024
  11. UlisesGascon commented on Mar 22, 2024

    @UlisesGascon
    UlisesGascon
    on Mar 22, 2024
    MemberAuthor
    More actions

    We have a dashboard now https://github.com/expressjs/security-wg/blob/main/tools/ossf_scorecard/report.md and a GitHub Action to update the reports 🥳

  12. inigomarquinez commented on Jun 17, 2024

    @inigomarquinez
    inigomarquinez
    on Jun 17, 2024
    Member
    More actions

    We can say that the implementation of the scorecard has been completed in most of the organisations' repositories expressjs, pillarjs and jshttp. The implementation has been the same in all cases, adding a github action in each repository called scorecard.yml (see example here). This action is executed both with each push to master and weekly via a cronjob.

    Some repositories of the 3 organisations have been discarded and the scorecard has not been integrated in them for several reasons: they have been deprecated, they have not been updated for a long time (more than 10 years), they are not applicable (documentation repositories) or they have a very low level of downloads and it is more than likely that in the near future they will be archived.

    After finalising the integration, the next step is to analyse the scores in the individual repositories and take suggested actions to improve these scores.

    @UlisesGascon , should we mark this issue as closed?

  13. UlisesGascon commented on Jun 17, 2024

    @UlisesGascon
    UlisesGascon
    on Jun 17, 2024
    MemberAuthor
    More actions

    Thanks for all the hard work @inigomarquinez and @carpasse!

    @UlisesGascon , should we mark this issue as closed?

    I prefer to keep it open until the PRs related to the Express repo are merged, so we can have a clear policy on how to patch the other repositories.

    Reacted by Íñigo Marquínez Prado
  14. UlisesGascon
    added
    security-wg-agenda
    on Oct 21, 2024
  15. 3 remaining items

  16. carpasse commented on Dec 20, 2024

    @carpasse
    carpasse
    on Dec 20, 2024
    Contributor
    More actions

    @wesleytodd , could you please review the PR for HTTP Errors and merged if you are ok with it? I looked into the issue with @UlisesGascon , and it’s not failing due to a problem with the code itself but because it can’t obtain the certificate needed to publish the results (link). This issue seems to be outside the control of the GitHub Actions. I was hoping that updating the scorecard action dependency might "fix" it.

  17. carpasse commented on Dec 23, 2024

    @carpasse
    carpasse
    on Dec 23, 2024
    Contributor
    More actions

    @expressjs/express-tc As @jonkoops mentioned in this comment, we should decide on which tool to use—Dependabot or Renovate—so that we don’t have to perform these version updates manually.

  18. wesleytodd commented on Jan 8, 2025

    @wesleytodd
    wesleytodd
    on Jan 8, 2025
    Member
    More actions

    Ah, just seeing this after checking the previous notification for updating. Sorry if that comment is not necessary now. Anyway, if this is a way to unblock those from failing I am good merging them, but we should work on a non-distributed way to manage these. Maybe have a shared workflow we update in one place?

  19. sheplu commented on Jan 9, 2025

    @sheplu
    sheplu
    on Jan 9, 2025
    Member
    More actions

    Ah, just seeing this after checking the previous notification for updating. Sorry if that comment is not necessary now. Anyway, if this is a way to unblock those from failing I am good merging them, but we should work on a non-distributed way to manage these. Maybe have a shared workflow we update in one place?

    one of the plan I have (and will be starting soon) is to centralize all workflows - allowing full reusability across all projects :D

    Reacted by Sebastian Beltran
  20. UlisesGascon commented on Jan 9, 2025

    @UlisesGascon
    UlisesGascon
    on Jan 9, 2025
    MemberAuthor
    More actions

    Actually, I started to experiment running the analysis in a DIY mode with the official Docker Image in VisionBoard and seems like maybe it will replace some of this CI overhead ref. I am checking with the Scorecard maintainers if there is a way also to report this info back to the official API (that is the only piece missing with this new approach for now).

    Reacted by Sebastian Beltran
  21. Phillip9587
    added 5 commits that reference this issue on Mar 26, 2025

    ci: use full SHAs for github action versions

    eb2f223

    ci: use full SHAs for github action versions

    41c094c

    ci: use full SHAs for github action versions

    f034a23

    ci: use full SHAs for github action versions

    7b44e1d

    ci: use full SHAs for github action versions

    3430459
  22. UlisesGascon commented on May 17, 2025

    @UlisesGascon
    UlisesGascon
    on May 17, 2025
    MemberAuthor
    More actions

    Bulk update

    I started a bulk operation to update all the repos with the common OSSF Scorecard recommendations

    Express Org

    Status: bulk completed, waiting for reviews to land

    • [StepSecurity] Apply security best practices expressjs.com#1905
    • OSSF Scorecard recommendations cors#350
    • [StepSecurity] ci: Harden GitHub Actions compression#235
    • [StepSecurity] Apply security best practices response-time#37
    • [StepSecurity] Apply security best practices basic-auth-connect#12
    • ci: apply OSSF Scorecard security best practices  generator#336
    • [StepSecurity] Apply security best practices multer#1311
    • ci: apply OSSF Scorecard security best practices serve-favicon#53
    • ci: apply OSSF Scorecard security best practices serve-index#119
    • [StepSecurity] Apply security best practices cookie-parser#129
    • ci: apply OSSF Scorecard security best practices cookie-session#186
    • ci: apply OSSF Scorecard security best practices errorhandler#31
    • ci: apply OSSF Scorecard security best practices timeout#47
    • ci: apply OSSF Scorecard security best practices vhost#50
    • [StepSecurity] Apply security best practices session#1047
    • ci: apply OSSF Scorecard security best practices method-override#19
    • ci: apply OSSF Scorecard security best practices morgan#300
    • ci: harden GH Actions codemod#55

    Pillarjs Org

    Status: bulk completed, waiting for reviews to land

    • ci: apply OSSF Scorecard security best practices pillarjs/parseurl#17
    • [StepSecurity] Apply security best practices pillarjs/send#256
    • ci: apply OSSF Scorecard security best practices pillarjs/path-to-regexp#364
    • ci: apply OSSF Scorecard security best practices pillarjs/resolve-path#7
    • ci: apply OSSF Scorecard security best practices pillarjs/hbs#213
    • ci: apply OSSF Scorecard security best practices pillarjs/cookies#156
    • ci: apply OSSF Scorecard security best practices pillarjs/multiparty#257
    • ci: apply OSSF Scorecard security best practices pillarjs/csrf#20
    • [StepSecurity] Apply security best practices pillarjs/router#161
    • ci: apply OSSF Scorecard security best practices pillarjs/encodeurl#12

    JsHttp Org

    Status: bulk completed, waiting for reviews to land

    • ci: apply OSSF Scorecard security best practices jshttp/on-finished#60
    • [StepSecurity] Apply security best practices jshttp/accepts#45
    • ci: apply OSSF Scorecard security best practices jshttp/negotiator#74
    • ci: apply OSSF Scorecard security best practices jshttp/range-parser#28
    • [StepSecurity] Apply security best practices jshttp/basic-auth#71
    • ci: apply OSSF Scorecard security best practices jshttp/methods#31
    • ci: apply OSSF Scorecard security best practices jshttp/http-assert#20
    • ci: apply OSSF Scorecard security best practices jshttp/cookie#226
    • ci: apply OSSF Scorecard security best practices jshttp/fresh#44
    • ci: apply OSSF Scorecard security best practices jshttp/compressible#25
    • ci: apply OSSF Scorecard security best practices jshttp/on-headers#20
    • ci: apply OSSF Scorecard security best practices jshttp/etag#37
    • chore: add dependabot jshttp/statuses#28
    • [StepSecurity] Apply security best practices jshttp/type-is#65
    • ci: apply OSSF Scorecard security best practices jshttp/vary#10
    • ci: apply OSSF Scorecard security best practices jshttp/media-typer#19
    • [StepSecurity] Apply security best practices jshttp/proxy-addr#29
    • [StepSecurity] Apply security best practices jshttp/mime-types#141
    • ci: apply OSSF Scorecard security best practices jshttp/content-type#31
    • [StepSecurity] Apply security best practices jshttp/http-errors#116
    • ci: apply OSSF Scorecard security best practices jshttp/forwarded#19
    • ci: apply OSSF Scorecard security best practices jshttp/mime-db#374
  23. UlisesGascon
    added a commit that references this issue on Jun 3, 2025

    docs: add ADR for branch protection

    8b4b33d
  24. UlisesGascon
    self-assigned this
    on Jun 5, 2025
  25. UlisesGascon commented on Jun 7, 2025

    @UlisesGascon
    UlisesGascon
    on Jun 7, 2025
    MemberAuthor
    More actions

    All the PRs are merged, so technically this is completed! 🥳

    Thanks @inigomarquinez @carpasse @bjohansebas @Phillip9587 for the incredible support ❤️

    Reacted by Sebastian Beltran
  26. UlisesGascon
    closed this as completedon Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @UlisesGascon
    UlisesGascon
  • @inigomarquinez
    inigomarquinez

Labels

OSSF scorecardsecurity-wg-agenda

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.