Skip to content

Backport of ci: fix CI skip script hole into release/1.19.x#21747

Merged
zalimeni merged 1 commit into
release/1.19.xfrom
backport/zalimeni/fix-scan-ci-skip-config/secretly-trusty-sunbeam
Sep 16, 2024
Merged

Backport of ci: fix CI skip script hole into release/1.19.x#21747
zalimeni merged 1 commit into
release/1.19.xfrom
backport/zalimeni/fix-scan-ci-skip-config/secretly-trusty-sunbeam

Conversation

@hc-github-team-consul-core
Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #21741 to be assessed for backporting due to the inclusion of the label backport/1.19.

The below text is copied from the body of the original PR.


In some environments, the script will not fail despite SKIP_CHECK_BRANCH being unset, leading to the script explicitly skipping CI when it should fail fast.

Meta-comment: we should consider transitioning to paths-ignore. Even though it'd be a bit more copypasta, the upside is we can't silently skip and pass tests + security scans by accident if a future bug or misconfiguration occurs.

Description

Example script failure -> skipped CI: https://github.com/hashicorp/consul/actions/runs/10851790913/job/30116333377#step:3:5 (this workflow no longer uses the script, and relies on paths-ignore instead).

Testing

❯ .github/scripts/check_skip_ci.sh; echo $?
.github/scripts/check_skip_ci.sh: line 16: SKIP_CHECK_BRANCH: SKIP_CHECK_BRANCH is required
1

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

Overview of commits

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@github-actions github-actions Bot added the theme/contributing Additions and enhancements to community contributing materials label Sep 16, 2024
@zalimeni zalimeni merged commit 8aafd30 into release/1.19.x Sep 16, 2024
@zalimeni zalimeni deleted the backport/zalimeni/fix-scan-ci-skip-config/secretly-trusty-sunbeam branch September 16, 2024 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme/contributing Additions and enhancements to community contributing materials

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants