Skip to content

ci: fix CI skip script hole#618

Closed
zalimeni wants to merge 1 commit into
mainfrom
zalimeni/fix-scan-ci-skip-config
Closed

ci: fix CI skip script hole#618
zalimeni wants to merge 1 commit into
mainfrom
zalimeni/fix-scan-ci-skip-config

Conversation

@zalimeni
Copy link
Copy Markdown
Member

@zalimeni zalimeni commented Sep 16, 2024

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.

Prevent this by explicitly checking for the env var.

This change is a port of hashicorp/consul#21741.

Testing

❯ ./.github/scripts/check_skip_ci.sh
./.github/scripts/check_skip_ci.sh: line 16: SKIP_CHECK_BRANCH: SKIP_CHECK_BRANCH is required

@zalimeni zalimeni added backport/1.1 Changes are backported to 1.1 backport/1.3 backport/1.4 Changes are backported to 1.4 backport/1.5 Changes are backported to 1.5 labels Sep 16, 2024
@zalimeni zalimeni requested a review from a team as a code owner September 16, 2024 21:28
@zalimeni zalimeni added the pr/no-changelog This PR does not introduce a user-facing change that should be reflected in the changelog label Sep 16, 2024
@zalimeni zalimeni force-pushed the zalimeni/fix-scan-ci-skip-config branch from 6e6c855 to ebe11c2 Compare September 17, 2024 15:57
@zalimeni zalimeni enabled auto-merge (squash) September 17, 2024 15:58
Comment thread .github/scripts/check_skip_ci.sh Outdated
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.

Prevent this by explicitly checking for the env var.

This change is a port of hashicorp/consul#21741.
@zalimeni zalimeni force-pushed the zalimeni/fix-scan-ci-skip-config branch from ebe11c2 to 43f13f5 Compare September 17, 2024 17:59
@zalimeni zalimeni requested a review from jm96441n September 17, 2024 17:59
@sarahalsmiller sarahalsmiller added the backport/1.6 Changes are backported to 1.6 label Sep 18, 2024
@zalimeni
Copy link
Copy Markdown
Member Author

Closing in favor of #637

@zalimeni zalimeni closed this Sep 24, 2024
auto-merge was automatically disabled September 24, 2024 19:58

Pull request was closed

@github-actions github-actions Bot deleted the zalimeni/fix-scan-ci-skip-config branch September 1, 2025 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.1 Changes are backported to 1.1 backport/1.4 Changes are backported to 1.4 backport/1.5 Changes are backported to 1.5 backport/1.6 Changes are backported to 1.6 pr/no-changelog This PR does not introduce a user-facing change that should be reflected in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants