Skip to content

jenkins: relax check for trusted nodejs/node branches#4052

Merged
richardlau merged 1 commit intomainfrom
sha_check
Mar 27, 2025
Merged

jenkins: relax check for trusted nodejs/node branches#4052
richardlau merged 1 commit intomainfrom
sha_check

Conversation

@richardlau
Copy link
Copy Markdown
Member

Only enforce the COMMIT_SHA_CHECK verification when:

  • The org/repo is not nodejs/node (i.e. outside of our project).
  • The org/repo is nodejs/node and the reference is for a pull request.

Refs: #4046


This relaxes the check added in #4046 to not apply for https://github.com/nodejs/node references that are not pull request references. This will reallow scheduled builds (e.g. daily test builds of main and the staging branches).

For pull request references, or requests to build references from other repositories, the check will still be enforced.

Only enforce the COMMIT_SHA_CHECK verification when:
- The org/repo is not nodejs/node (i.e. outside of our project).
- The org/repo is nodejs/node and the reference is for a pull request.
Copy link
Copy Markdown
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Member

@UlisesGascon UlisesGascon left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for this big effort @richardlau ❤️

@richardlau richardlau merged commit a7a185f into main Mar 27, 2025
4 checks passed
@targos targos deleted the sha_check branch September 11, 2025 15:47
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.

5 participants