Skip to content

fix: repair broken PR gate; give report-only provider jobs the Keycloak secret - #183

Merged
saqibmanan merged 2 commits into
mainfrom
fix/report-jobs-keycloak-secret
Sep 15, 2026
Merged

saqibmanan merged 2 commits into
mainfrom
fix/report-jobs-keycloak-secret

Conversation

@saqibmanan

Copy link
Copy Markdown
Contributor

The report-only provider jobs passed no KEYCLOAK_CLIENT_SECRET. A called workflow only sees secrets its caller passes, so org_add_permission couldn't get a token and every org-create test skipped on both workers — e.g. a green provider report was 7 passed, 5 skipped, the 5 being all org flows. Adds the secret and api_base_url to the deploy workflow's provider-functional-report and the PR gate's provider-report.

Also fixes a broken PR gate on main: two CodeQL autofix commits each added a top-level permissions: block ({} and contents/pull-requests: read). Duplicate keys are invalid YAML, so GitHub rejected pr-gate.yml and every run since has failed with no jobs. Keeps the least-privilege read block.

org_add_permission needs a Keycloak token to check canAdd. A called
workflow only sees secrets its caller passes, and the report-only job
passed none, so every org-create test skipped on both workers -- the
provider report looked green while never exercising org flows.
…t to provider-report

Two CodeQL autofix commits each added a top-level permissions block
(permissions: {} and contents/pull-requests: read). A duplicate key is
invalid YAML, so GitHub rejected the workflow and the PR gate never ran.
Keeps the least-privilege read block. Also passes KEYCLOAK_CLIENT_SECRET
to provider-report, whose org-create tests otherwise all skip.
@saqibmanan
saqibmanan merged commit 6ba3e23 into main Sep 15, 2026
10 of 12 checks passed
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.

1 participant