Skip to content

Skip credentialed integration jobs on fork PRs - #1043

Merged
rohita5l merged 1 commit into
mainfrom
david/ci-skip-windows-oidc-on-forks
Oct 8, 2026
Merged

rohita5l merged 1 commit into
mainfrom
david/ci-skip-windows-oidc-on-forks

Conversation

@david-siqi-liu

@david-siqi-liu david-siqi-liu commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Windows installation tests logs in to JFrog with a GitHub OIDC token (id-token: write). Pull requests from forks never get one, so the job failed on every fork PR (for example #901: "Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable").

  • Add the same fork guard the other credentialed integration jobs use.

  • Make the fork rule explicit in tests/test_integration_contract.py. It lists SKIPPED_ON_FORK_PRS and derives each job's real fork behavior from the workflow, through its own guard or a skipped needs. The test fails if:

    • the list drifts from the workflow;
    • any job that runs on forks uses secrets or OIDC.

    Dropping the new guard fails the test.

Follow-up from the same thread, not in this PR: a way for fork PRs to run the credentialed suites after a team member approves or adds a label.

This pull request and its description were written by Isaac.

@david-siqi-liu
david-siqi-liu force-pushed the david/ci-skip-windows-oidc-on-forks branch from 62025d5 to bcea51f Compare October 8, 2026 15:03
@david-siqi-liu david-siqi-liu changed the title Skip Windows installation tests on fork PRs Skip credentialed integration jobs on fork PRs Oct 8, 2026
@david-siqi-liu
david-siqi-liu force-pushed the david/ci-skip-windows-oidc-on-forks branch 2 times, most recently from 062fc7d to 5f3c41e Compare October 8, 2026 15:09
The job logs in to JFrog with a GitHub OIDC token, which pull requests from
forks never receive, so it failed on every fork PR. Guard it like the other
credentialed integration jobs.

The contract test now lists the integration jobs that skip fork PRs, checks
that against the workflow, and rejects secrets or OIDC in any job that runs
on forks.

Co-authored-by: Isaac <no-reply@databricks.com>
@rohita5l
rohita5l enabled auto-merge October 8, 2026 15:35
@rohita5l
rohita5l added this pull request to the merge queue Oct 8, 2026
Merged via the queue into main with commit dbd7ed6 Oct 8, 2026
48 of 52 checks passed
@rohita5l
rohita5l deleted the david/ci-skip-windows-oidc-on-forks branch October 8, 2026 15:47
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.

3 participants