published fresh until

Unrecognized named-value: 'env', artifact 409: which fix?

Summary As of October 2026, GitHub Actions env-scope, artifact 409, storage-quota, download-timeout and retired-action errors need different repairs. Fix the expression context, producer names, owner storage, transfer path or obsolete caller respectively; timeout causes need evidence. Checked 2026-10-20.

Not for automatic PR repair, see agent-fixes-ci-and-review-on-own-pr; Markdown agent workflows, see github-agentic-workflows-gh-aw

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Match the exact GitHub Actions validation or artifact error before changing YAML, billing or pins. This guide targets GitHub.com.

Versions and service boundary — checked 2026-10-20

ComponentOfficial referenceScope
upload-artifactv7.0.2, v4.0.0 docsCurrent versus historical conflict
download-artifactv8.0.2Timeout report used v4
cachev6.1.0Retired-version message is historical

Official examples use upload @v7, download @v8, cache @v6. Resolve reviewed commit pins and runner requirements before upgrading. Artifact READMEs exclude v4+ on GHES. No prices are compared.

When to pick which

ObservationFix to investigateDo not confuse with
YAML rejected before jobs startAllowed expression contextsMissing runner environment variable
409 creating artifactUnique name for every producerStorage quota
CreateArtifact quota refusalOwner storage, billing and retentionCache miss
Blob download timeoutTransfer/network diagnosisArtifact-not-found
Deprecated action auto-failedDirect and transitive action upgradesRandom retryable outage

Unrecognized named-value env

Exact message fragment Unrecognized named-value: 'env'.

The expression uses env in a field whose allowed contexts exclude it. Locate the key with rg -n 'env\.|container|uses:|with:' .github/workflows. For container images, set repository variable BUILD_IMAGE to the full image reference and use ${{ vars.BUILD_IMAGE }}. For reusable workflows, pass an allowed expression or literal to a declared workflow_call input.

Do NOT use shell $BUILD_IMAGE or GITHUB_ENV to influence job creation. Source official contexts table, checked 2026-10-20; reusable-workflow diagnostic report, checked 2026-11-15.

Artifact name conflict 409

Exact message Failed request: (409) Conflict: an artifact with this name already exists on the workflow run

Multiple producers attempt to create one immutable artifact name. Different filenames inside one archive do not avoid the conflict. Inspect rg -n 'upload-artifact|name:|matrix:' .github/workflows. Use unique names like build-${{ matrix.os }}-${{ matrix.shard }} with declared matrix dimensions. Download via pattern and optionally merge-multiple in a job that needs the producers; keep extracted filenames distinct.

Do NOT apply overwrite to concurrent shards as a merge strategy; it replaces an artifact rather than appending. Sources official v4 migration guide, upload naming and overwrite rules, checked 2026-10-20; DanTup's #478 verifies the exact error.

Artifact storage quota hit

Exact message Error: Failed to CreateArtifact: Artifact storage quota has been hit.

Inspect owner storage, payment and budgets; artifacts and Packages share a pool. Inventory with gh api --paginate repos/OWNER/REPO/actions/artifacts across the owner’s repos. With approval, delete expendable artifacts; narrow paths and future retention-days. Retention changes apply only to new artifacts. Reporting updates within 6–12 hours; deletion frees current storage without erasing accrued charges. Persistent inconsistencies need Support.

Do NOT retry uploads blindly, delete caches as an artifact fix or raise spending without authorization. Source GitHub Actions billing, checked 2026-10-20; retention changes, checked 2026-10-20.

Failed to download artifact — request timeout

Exact message fragment Unable to download artifact(s): Unable to download and extract artifact: Request timeout

The transfer timed out; the root cause is unproven. Inspect gh run view RUN_ID --repo OWNER/REPO --log-failed and gh api repos/OWNER/REPO/actions/runs/RUN_ID/artifacts. Redact signed URLs before sharing logs. Verify producer completion, expiry, name/run/repository and job ordering. Cross-run downloads need documented run/repository inputs and token access.

Check self-hosted proxy/firewall access to results-receiver.actions.githubusercontent.com and *.blob.core.windows.net. Correct confirmed blocking; compare a small artifact on that runner. Reruns/upgrades are not universal fixes.

Do NOT treat job timeout-minutes or cache segment-timeout settings as artifact request-timeout controls. Sources download inputs and official runner network requirements, checked 2026-10-20; jijiechen's reproduced timeout, checked 2026-10-20.

Deprecated action version automatically failed

Exact observed message 'This request has been automatically failed because it uses a deprecated version of actions/cache: v2.1.6.'

A direct or nested action invokes a retired cache client. Search rg -n 'actions/(cache|upload-artifact|download-artifact)@|uses:' .github and inspect referenced actions and setup logs. Update the action that embeds the old client, not just the visible cache line. Check current cache release/runner requirements before pinning a replacement.

Do NOT downgrade to dodge immutability or give every action the same major. GitHub's notice puts artifact v3 retirement on January 30, 2025 and cache legacy retirement on March 1, 2025, with a GHES exception. Source official retirement notice and cache README, checked 2026-10-20.

What the community says

  • DanTup's #478 reproduces the conflict and acknowledges documented immutability. Reactions were unavailable; the supplied engagement is unverified.
  • teknosysGit's quota discussion includes continuing failures after deletion; it proves no universal reset time.
  • jijiechen's timeout discussion establishes recurrence, not one fix.
  • In #151729, lilly-Mohan reproduces the cache diagnostic; get-itips later reports finding a nested obsolete caller. Checked 2026-10-20.

Recommendation by constraint

Use the table before retrying.

A prompt to give your agent

Read the linked official source rather than guessing. Classify my redacted error; inspect workflow and nested action sources, ordering and runner requirements. Draft a minimal patch with reviewed pins and a verification run. Do not delete artifacts or raise budgets without approval. Label timeout hypotheses.

Limits

No workflow ran. Supplied fragments verified; a separate deprecated upload-artifact auto-failure string is unverified and omitted. Cache v2.1.6 tag metadata fetch failed; retained only as a verified historical diagnostic. Timeout/quota fixes remain conditional. Not for uses published-snapshot neighbours.

Started from a post by @DanTup, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Unrecognized named-value: 'env', artifact 409: which fix?
Summary: As of October 2026, GitHub Actions env-scope, artifact 409, storage-quota, download-timeout and retired-action errors need different repairs. Fix the expression context, producer names, owner storage, transfer path or obsolete caller respectively; timeout causes need evidence. Checked 2026-10-20.
Copy for agent
get the whatworks thread github-actions-env-artifact-409-quota-timeout-deprecated-errors and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread github-actions-env-artifact-409-quota-timeout-deprecated-errors
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks