Skip to content

fix(ci): add scorecard security scan to merge queue#25107

Open
thomasqueirozb wants to merge 3 commits intomasterfrom
add-scorecard-merge-queue-check
Open

fix(ci): add scorecard security scan to merge queue#25107
thomasqueirozb wants to merge 3 commits intomasterfrom
add-scorecard-merge-queue-check

Conversation

@thomasqueirozb
Copy link
Copy Markdown
Contributor

@thomasqueirozb thomasqueirozb commented Apr 1, 2026

Summary

Add an OSSF Scorecard security scan to the merge queue workflow. The job fails on critical findings (SARIF error-level), blocking merges that introduce dangerous workflow patterns like script injection.

Vector configuration

NA

How did you test this PR?

Downloaded a SARIF file from GHA with a critical vulnerability and ran the JQ commands locally

Change Type

  • Bug fix
  • New feature
  • Dependencies
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

@github-actions github-actions bot added the domain: ci Anything related to Vector's CI environment label Apr 1, 2026
@thomasqueirozb thomasqueirozb added the no-changelog Changes in this PR do not need user-facing explanations in the release changelog label Apr 1, 2026
@thomasqueirozb thomasqueirozb marked this pull request as ready for review April 2, 2026 18:15
@thomasqueirozb thomasqueirozb requested a review from a team as a code owner April 2, 2026 18:15
@thomasqueirozb thomasqueirozb enabled auto-merge April 2, 2026 18:24
@pront
Copy link
Copy Markdown
Member

pront commented Apr 2, 2026

@codex review

Copy link
Copy Markdown
Member

@pront pront left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per https://github.com/ossf/scorecard-action#workflow-restrictions, merge_group triggers are not supported. How did you validate this PR?

@thomasqueirozb
Copy link
Copy Markdown
Contributor Author

Per ossf/scorecard-action#workflow-restrictions, merge_group triggers are not supported. How did you validate this PR?

AFAICT this only applies when publishing results, which we are not doing in the MQ. There is also not really a way to test this without queuing and seeing if it passes.

@thomasqueirozb thomasqueirozb requested a review from pront April 3, 2026 15:05
@pront
Copy link
Copy Markdown
Member

pront commented Apr 3, 2026

There is also not really a way to test this without queuing and seeing if it passes.

Here is a way to do this:

  • Create a fresh repo like vectordotdev/merge-queue-scorecard-sandbox.
  • Push a minimal workflow that matches the new scorecard job as closely as possible.
  • Merge queue enabled on main.
  • Create a PR that introduces a known dangerous workflow pattern that we expect to be caught by this check.
  • If validated, then we can come back to this PR and merge it.

I understand it takes a lot of effort to test this, but especially given past learnings, we should not merge untested PRs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: ci Anything related to Vector's CI environment no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants