Skip to content

[BugFix] Bump get-ci-image-tag.yml ref to SHA-pinned opensearch-build commit to unblock CI#5583

Merged
Swiddis merged 2 commits into
opensearch-project:mainfrom
mengweieric:fix/ci-failures-2026-06-24
Jun 25, 2026
Merged

[BugFix] Bump get-ci-image-tag.yml ref to SHA-pinned opensearch-build commit to unblock CI#5583
Swiddis merged 2 commits into
opensearch-project:mainfrom
mengweieric:fix/ci-failures-2026-06-24

Conversation

@mengweieric

@mengweieric mengweieric commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

Several CI checks were blocked on main before any build or test could run, all with the same org-policy error:

The actions ... are not allowed in opensearch-project/sql because all actions must be pinned to a full-length commit SHA.

The unpinned actions are not defined in this repository. They live in the opensearch-build reusable workflows that this repo's workflows pinned at the old ref c2498b758c (2026-05-21), which still referenced version tags (crane-installer@v1, checkout@v6, setup-node@v6, configure-aws-credentials@v6, find-comment@v3, create-or-update-comment@v5).

This bumps every opensearch-build reusable-workflow ref to 761e093b8c1349cc07f21c1d681d3b30bf9e1999 (opensearch-build PR #6253, "Update build repo all workflows to use SHA", 2026-06-12), where all of those actions are pinned to full-length SHAs, satisfying the policy. No product code is touched; this is a CI-infrastructure fix.

Workflows updated (all to the new SHA):

  • get-ci-image-tag.yml consumers: sql-test-and-build-workflow.yml, analytics-engine-compat.yml, integ-tests-with-security.yml, sql-pitest.yml, sql-test-workflow.yml
  • pr_review.yml (code-diff-analyzer.yml, code-diff-reviewer.yml)
  • issue-dedupe.yml (issue-dedupe-detect.yml, issue-dedupe-autoclose.yml)

Verified that at the new SHA, each referenced opensearch-build workflow pins all of its actions to full SHAs. On this PR, the get-ci-image-tag.yml-gated checks (SQL Java CI, Analytics Engine Compatibility, Security Plugin IT, SQL PIT test) now pass.

Note: pr_review.yml triggers on pull_request_target, so it runs from the base branch. Its Code-Diff-Analyzer fix therefore takes effect for PRs opened after this merges, not retroactively on this PR.

Related Issues

Check List

  • Commits are signed per the DCO using --signoff or -s.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

… commit

CI checks that call the opensearch-build get-ci-image-tag.yml reusable
workflow (SQL Java CI, Analytics Engine Compatibility, Security Plugin IT,
SQL PIT test) were blocked before any build or test ran, with:

  The actions iarekylew00t/crane-installer@v1 and actions/checkout@v6 are
  not allowed in opensearch-project/sql because all actions must be pinned
  to a full-length commit SHA.

Those unpinned actions live in the referenced opensearch-build commit
c2498b758c, not in this repo. Bump the ref in all five workflows to
761e093b8c13 (opensearch-build #6253), where crane-installer and checkout
are pinned to full SHAs, satisfying the org action-pinning policy.

Signed-off-by: Eric Wei <mengwei.eric@gmail.com>
@mengweieric mengweieric added infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. ci-failure PR blocked due to failing CI SQL skip-diff-analyzer Maintainer to skip code-diff-analyzer check, after reviewing issues in AI analysis. skip-diff-reviewer Maintainer to skip code-diff-reviewer check, after reviewing issues in AI analysis. labels Jun 24, 2026
…commit

The first commit covered the five workflows that call get-ci-image-tag.yml.
The same old opensearch-build ref (c2498b758c) was still pinned in
pr_review.yml (code-diff-analyzer.yml, code-diff-reviewer.yml) and
issue-dedupe.yml (issue-dedupe-detect.yml, issue-dedupe-autoclose.yml).

Code-Diff-Analyzer failed at action resolution with the same policy error
(actions/setup-node@v6, aws-actions/configure-aws-credentials@v6,
peter-evans/find-comment@v3, peter-evans/create-or-update-comment@v5 not
pinned to full SHA). This dies before the skip-diff-analyzer label can take
effect, since the policy check runs before the called workflow executes.

Bump all four remaining refs to 761e093b8c13 (opensearch-build #6253),
where these actions are SHA-pinned, fully removing the old ref from the repo.

Signed-off-by: Eric Wei <mengwei.eric@gmail.com>
@Swiddis Swiddis merged commit cb10516 into opensearch-project:main Jun 25, 2026
40 of 42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-failure PR blocked due to failing CI infrastructure Changes to infrastructure, testing, CI/CD, pipelines, etc. skip-diff-analyzer Maintainer to skip code-diff-analyzer check, after reviewing issues in AI analysis. skip-diff-reviewer Maintainer to skip code-diff-reviewer check, after reviewing issues in AI analysis. SQL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants