Skip to content

Use GitHub API to fetch Github artefacts in our scripts #50737

@amoghrajesh

Description

@amoghrajesh
Contributor

Body

We've been frequently hitting GitHub rate limits in CI over the past few days. Upon investigation, it appears that while we do pass down the GITHUB_TOKEN to the breeze commands and related CI scripts, we don’t actually use the GitHub API. Instead, we rely on fetching files via raw.githubusercontent.com, which doesn't utilize the token and thus bypasses the mechanisms that would help avoid rate limiting.

Reference:
https://stackoverflow.com/questions/77054807/how-do-you-use-raw-githubusercontent-com-in-a-github-action#comment135840009_77054807


Shell Scripts referencing raw.githubusercontent.com


Python Files referencing raw.githubusercontent.com


Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

aritra24

aritra24 commented on May 18, 2025

@aritra24
Collaborator

@amoghrajesh if you need a couple more hands helping move these I can pitch in.

potiuk

potiuk commented on May 19, 2025

@potiuk
Member

I don't think we need to "fix" all of those- I already reviewed and marked a few that should stay as they are.

amoghrajesh

amoghrajesh commented on May 19, 2025

@amoghrajesh
ContributorAuthor

Thank you @potiuk, it was a bulk fetch and I didn't triage them yet, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:dev-toolskind:metaHigh-level information important to the community

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @potiuk@aritra24@gopidesupavan@amoghrajesh

      Issue actions

        Use GitHub API to fetch Github artefacts in our scripts · Issue #50737 · apache/airflow