A workflow uploads an audit report as an artifact. Repository policy permits at most 30 days of retention, while the workflow requests retention-days: 90. What is the appropriate correction?

Published
  1. Set actions: write on GITHUB_TOKEN and keep the unsupported duration.
  2. Use a cache entry instead of an artifact and assume a guaranteed 90-day lifetime.
  3. Set a repository variable RETENTION_DAYS=90 and assume it overrides the administrative maximum.
  4. Choose a retention-days request that does not exceed the repository or organization policy cap.

Comments — 0