Commit graph

18 commits

Author SHA1 Message Date
Paul Holzinger
357519e364
.github/workflows/issue_pr_lock.yml: run for the full org
This workflow is used and called by buildah and skopeo, however due this
new if it will just get skipped there as the context on a action reuse
will still be set to the proper repo which calls the action.

The point of this new if from commit 32f987fc8c
("ci: restrict specific workflows to the upstream repository")
was to avoid running our actions on forks where they will fail due to
missing secrets, etc...

So by limiting the scope to our org here we can reuse it from buildah
and skopeo and still prevent it running on forks from users.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-07-21 11:18:51 +02:00
Paul Holzinger
d6b9c0b6ad
.github/workflows: do not run cron jobs at midnight
As documented on github running jobs at the top of the hour and I guess
especially at midnight has the chance to get dropped as to many jobs are
started around that time for the github workers to handle.

I observed that happening today:
"No server is currently available to service your request."
https://github.com/podman-container-tools/podman/actions/runs/29709422226

So to fix that just move our cron time to some under "random" time
during the night.

https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#schedule

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-07-20 14:20:08 +02:00
Paul Holzinger
b64140e0ef
update dessant/lock-threads to v6.0.2
We need this so the action accepts the new github token format.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-07-15 12:35:24 +02:00
Paul Holzinger
14db369cdd
issue_pr_lock.yml: use client id
Using the app id is deprecated, also so far since the repo move this
workflow failed all the time as the github app was not in the new org.
I created a new app for this and set the right vars.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-07-15 12:32:07 +02:00
renovate[bot]
61547d09b0
Update dawidd6/action-send-mail action to v18
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-26 02:49:08 +00:00
Byounguk Lee
32f987fc8c ci: restrict specific workflows to the upstream repository
Many GitHub Actions workflows currently trigger on user forks, leading to
unnecessary CI resource consumption, unwanted bot behavior, and inevitable
failures. This commit restricts these specific workflows to only run on the
primary `containers/podman` repository.

The restricted workflows fall into two main categories:
1. Require Custom Upstream Secrets: Workflows like `release`, `mac-pkg`,
   `cherry-pick`, and `dev-bump` rely on secrets (e.g., Apple/Azure certs,
   PODMANBOT_TOKEN, ACTION_MAIL_*) that are unavailable in forks.
2. Manage Upstream Tracker State: Workflows like `assign`, `stale`, and
   `labeler` are intended strictly for managing the primary project's
   issues and PRs. Running them on personal forks creates unwanted noise.

Additionally, refactored several complex `if` conditions using YAML
multi-line strings (`|`) to maintain and improve readability.

Signed-off-by: Byounguk Lee <nimdrak@gmail.com>
2026-06-18 11:32:53 +00:00
Kir Kolyshkin
cd78329c3f ci: pin all github actions
Some were already pinned; let's fix the rest.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-19 12:11:39 -07:00
renovate[bot]
7812e9d814
[skip-ci] Update dawidd6/action-send-mail action to v17
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-28 12:04:43 +00:00
renovate[bot]
a1734fb02b
[skip-ci] Update dawidd6/action-send-mail action to v16
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-04-21 20:58:17 +00:00
renovate[bot]
71e0456b1b
[skip-ci] Update actions/create-github-app-token action to v3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-14 01:14:19 +00:00
renovate[bot]
20e61ba88e
[skip-ci] Update dessant/lock-threads action to v6
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-12 15:50:41 +00:00
Daniel Hast
248d8f64a6
ci: pin 3rd-party action dependencies by commit hashes
Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
2025-12-01 08:41:55 -05:00
Lewis Roy
081629cf01
Update pre-commit-hooks and Codespell hook
pre-commit-hooks v3.4.0 -> v5.0.0
codespell 2.3.0 -> 3.4.1

Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-04-13 14:26:34 +10:00
renovate[bot]
5148cf3c14
[skip-ci] Update actions/create-github-app-token action to v2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 19:51:47 +00:00
Yaroslav Halchenko
c203c48c70 Detect and fix typos using codespell
Signed-off-by: Yaroslav Halchenko <debian@onerussian.com>
2024-09-05 13:56:39 -04:00
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
Chris Evich
394820c4f0
Add big warning to GHA workflow
A simple file rename quickly broke the same workflow in both the Buildah
and Skopeo repos.  Add a big-fat warning comment to prevent this from
happening again.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-04-09 16:41:22 -04:00
Chris Evich
7f0268a2e7
GHA: Fix intermittent workflow error
Periodically, the discussion-lock workflow throws the error: `Resource
not accessible by integration`

This was identified in the
[upstream](https://github.com/dessant/lock-threads)
issue 47, as caused by a version-5 change that adds support for
management of discussions but requires additional permissions
and possibly settings.  Given the low notification traffic from
discussions, old discussions may remain valid for a long while, and are
a useful community-interface:  Disable management of discussions.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-04-09 11:19:08 -04:00
Renamed from .github/workflows/discussion_lock.yml (Browse further)