Skip to content

ci(repo): run the test and analysis jobs on free standard runners - #270

Closed
razkevich wants to merge 2 commits into
mainfrom
ci/free-runners-test-jobs
Closed

razkevich wants to merge 2 commits into
mainfrom
ci/free-runners-test-jobs

Conversation

@razkevich

Copy link
Copy Markdown

Why

Since the move to the static-IP github-public-amd64 group, every Linux job here is billed per minute. The org IP allow list refuses only signed-in requests from standard runners, not anonymous reads of a public repository, and the jobs below make no GitHub call except the checkout. Same change as GetStream/Agents#2644 (merged), GetStream/stream-video-flutter#1739 and GetStream/stream-chat-flutter#3256; see GetStream/localdevelopment#14 for the guide.

Changes

These jobs move to ubuntu-latest and fetch github.sha anonymously with git instead of actions/checkout (full history, branches and tags where they had fetch-depth: 0):

  • pana.yml: all three package jobs
  • stream_core_flutter_workflow.yml: analyze, test
  • legacy_version_analyze.yml: analyze_legacy_version
  • stream_thumbnail_native_builds.yml: android, linux, web

Unchanged on the static-IP runners: the gate job (dorny/paths-filter), pr_title, label, web-deploy and release workflows. The bootstrap and pana actions make no GitHub call; Codecov keeps uploading with the job's OIDC token.

Validation

This PR's own runs use the changed workflows.

🤖 Generated with Claude Code

@razkevich
razkevich requested a review from a team as a code owner November 27, 2026 10:41
@github-actions github-actions Bot added the ready Pull request ready to be reviewed label Nov 27, 2026
@xsahil03x

xsahil03x commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Thanks for this! We probed ubuntu-latest against github-public-amd64 with GITHUB_TOKEN (run 1, run 2): git fetch and actions/checkout with the token succeed on the standard runner, while git push --dry-run, GitHub API calls (a write, and also a read of issue comments) and bot-commit are refused with the allow-list error. So jobs that only check out and build can keep plain actions/checkout (with persist-credentials: false) instead of a hand-rolled anonymous fetch, which is also what Android's conventions do (GetStream/stream-build-conventions-android#114); anything that calls the API stays on the static IPs.

#271 makes the same runner moves that way, plus SHA-pinned actions and Dependabot. The same result may simplify GetStream/stream-chat-flutter#3256, GetStream/stream-video-flutter#1739 and the guide in GetStream/localdevelopment#14 too.

Edited: the first version said API reads succeed too; a second probe showed some API reads are refused.

@xsahil03x

Copy link
Copy Markdown
Member

Closing in favour of #271 (merged): read-only jobs moved to free runners with a regular actions/checkout, after probes showed git fetches with GITHUB_TOKEN work on standard runners and only GitHub API calls and pushes are refused. Thanks for starting this!

@xsahil03x xsahil03x closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Pull request ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants