Skip to content

ci: fix auto-merge token/failures, disable unused prow commands - #12

Merged
sykim-etri merged 1 commit into
openkcloud:stable/2024.1from
sykim-etri:ci/auto-merge-error-fail
Jul 27, 2026
Merged

sykim-etri merged 1 commit into
openkcloud:stable/2024.1from
sykim-etri:ci/auto-merge-error-fail

Conversation

@sykim-etri

@sykim-etri sykim-etri commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the /approve auto-merge and removes the conflicting prow handler.

  • Token: auto-merge authenticated with secrets.CR_PAT, which does not exist in this org (only CR_PAT_RWD is defined, as used by the image builds). With no token the bot merge silently never happened. Point every reference at CR_PAT_RWD.
  • Surface failures: set MERGE_ERROR_FAIL so a rejected merge shows as a failed check instead of a silent green.
  • Disable prow: prow-commands.yml is unused, and its /approve handler collides with auto-merge's /approve, failing with "not a org member or collaborator" (the default GITHUB_TOKEN cannot read org membership). Renamed to .disabled.

Note: CR_PAT_RWD still needs the workflow scope to merge PRs that touch .github/workflows/.

@sykim-etri sykim-etri changed the title ci: fail the auto-merge job when the merge is rejected ci: point auto-merge at CR_PAT_RWD and surface merge failures Jul 27, 2026
@sykim-etri
sykim-etri force-pushed the ci/auto-merge-error-fail branch from 29de6e6 to f636866 Compare July 27, 2026 05:28
Two fixes to the /approve auto-merge:

- The workflow authenticated with secrets.CR_PAT, which does not exist
  in this org (only CR_PAT_RWD is defined, as used by the image builds).
  With no token the merge silently never happened. Point every CR_PAT
  reference at CR_PAT_RWD.
- Set MERGE_ERROR_FAIL so a rejected merge surfaces as a failed check
  instead of a green one (automerge-action otherwise exits 0).

Note CR_PAT_RWD still needs the 'workflow' scope to merge PRs that
touch .github/workflows/.
@sykim-etri
sykim-etri force-pushed the ci/auto-merge-error-fail branch from f636866 to 55a9da0 Compare July 27, 2026 05:37
@sykim-etri

Copy link
Copy Markdown
Contributor Author

/approve

@sykim-etri
sykim-etri merged commit ce78df1 into openkcloud:stable/2024.1 Jul 27, 2026
1 check passed
@sykim-etri sykim-etri changed the title ci: point auto-merge at CR_PAT_RWD and surface merge failures ci: fix auto-merge token/failures, disable unused prow commands Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant