Skip to content

Docker build: Call Github API with authentication #2256

Closed
@nvuillam

Description

@nvuillam

Github api limits seem to be reached more and more often, because of all CI jobs that run in parallel, and that makes CI jobs fail more and more often during the docker build

Using GITHUB_TOKEN we can go to 1000 calls per hour, that should be large enough -> https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limits-for-requests-from-github-actions

We need to test and update our calls to Github API to add GITHUB_TOKEN as HTTP header, something like:

-H "Authorization: Bearer $(cat /run/secrets/GITHUB_TOKEN)" \

The neighbors of SuperLinter implemented the way to fix that, but doing authenticated calls to Github API

https://github.com/github/super-linter/blob/main/scripts/install-pwsh.sh

Using docker build action would probably help too and decrease our sh files maintenance

https://github.com/github/super-linter/blob/13e5f8b29a34bbf7ce2476292477fa385bec2578/.github/workflows/ci.yml#L34

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions