mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 03:54:00 +09:00
`actions/upload-artifact` v4 and later send an absolute `expires_at` computed with the runner's clock, which Gitea stored unchecked. A runner clock running behind made artifacts expire at the next cleanup, and workflows could keep artifacts longer than `ARTIFACT_RETENTION_DAYS`. - Requested expiries are bounded by Gitea's clock, at least 1 day and at most `ARTIFACT_RETENTION_DAYS` when it is not `0`. Longer `retention-days` requests now get the instance limit. - `github.retention_days` now carries `ARTIFACT_RETENTION_DAYS`, so upload actions cap `retention-days` themselves and log a warning, like on GitHub. Co-authored-by: bircni <bircni@icloud.com>