spiegel_podman/.github/workflows
Chris Evich 8942e2dbda
GHA: Attempt fix exceeded a secondary rate limit
Frequent but intermittently, the stale issue and PR locking workflow
generates the error:

```
You have exceeded a secondary rate limit. Please wait a few minutes
before you try again. If you reach out to GitHub Support for help,
please include the request ID XYZ
```

According to upstream `dessant/lock-threads` issue 48, this seems to be
coming from the GitHub side (bug/feature/limitation), since the action
uses an official github API rate-limiting library.  It's unlikely related
to which style/syntax of github token is used, nor if the action is
executed concurrently across multiple repos.

According to the rate-limiting docs:
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#about-secondary-rate-limits
it's possible the issue is caused due to an unknown aspect of the clause:

```
These secondary rate limits are subject to change without notice. You
may also encounter a secondary rate limit for undisclosed reasons.
```

The same docs indicate Github Apps have enhanced rate-limits which
scale with the org's repo count.  Attempt to fix the intermittent
failures by making use of a new, dedicated, org-specific, private "Stale
Locking App" I recently created.  This requires the addition of a new
action to the workflow that obtains a short-lived token for passing to
lock-threads.

Note: Because both `vars.STALE_LOCKING_APP_ID` and
`secrets.STALE_LOCKING_APP_PRIVATE_KEY` are defined at the
containers-organization level, the Buildah and Skopeo re-use
of this workflow should continue to function normally w/o change.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-04-30 12:01:42 -04:00
..
check_cirrus_cron.yml [skip-ci] Update dawidd6/action-send-mail action to v3.12.0 2024-03-27 23:22:18 +00:00
fcos-podman-next-build-prepush-test.yml [CI:BUILD] followup PR for fcos with podman-next 2023-09-19 10:19:53 -04:00
fcos-podman-next-build.yml FCOS+podman-next: correct GHA conditional syntax 2023-09-26 10:34:52 -04:00
issue-labeler.yml [skip-ci] Update github/issue-labeler action to v3.4 2024-02-02 23:24:07 +00:00
issue_pr_lock.yml GHA: Attempt fix exceeded a secondary rate limit 2024-04-30 12:01:42 -04:00
labeler.yml [skip-ci] Update actions/labeler action to v5 2023-12-04 15:24:36 +00:00
mac-pkg.yml [CI:BUILD] Build universal Podman binary for Mac installer 2024-03-07 09:09:32 -05:00
pr-title.yml Set permissions for GitHub actions 2022-03-30 20:36:23 +00:00
release-artifacts.yml [CI:DOCS] Fix artifact action 2024-04-22 15:23:52 -04:00
rerun_cirrus_cron.yml [skip-ci] Update dawidd6/action-send-mail action to v3.12.0 2024-03-27 23:22:18 +00:00
stale.yml [skip-ci] Update actions/stale action to v9 2023-12-07 13:19:55 +00:00
update-podmanio.yml [CI:DOCS] Add GitHub action to update version on Podman.io 2024-04-03 12:15:35 -04:00
upload-win-installer.yml [CI:DOCS] Build & upload release artifacts with GitHub Actions 2024-04-19 14:16:23 -04:00