GitHub Actions: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files
Workflows (or old actions) still use ::set-output, which must be replaced by writing to the $GITHUB_OUTPUT file.
The `set-output` command is deprecated and will be disabled soonset-output command is deprecatedPlease upgrade to using Environment FilesThe `save-state` command is deprecated::set-output name= Meaning
The old workflow commands were insecure. Replace echo "::set-output name=x::y" with echo "x=y" >> "$GITHUB_OUTPUT". The same applies to save-state ($GITHUB_STATE). If a third-party action triggers the warning, update that action.
Common causes
echo "::set-output name=...::..."in your scripts- Old versions of actions that use the toolkit's
setOutput - Copy-pasted snippet from an older tutorial
save-stateused the same way
⚡ Quick fix
- Write outputs with
echo "name=value" >> "$GITHUB_OUTPUT" - Update the action named in the warning
- Search the repo:
grep -R "::set-output" .github
Detailed fix by platform
GitHub Actions
- Multi-line output:
{ echo 'body<<EOF'; cat file.txt; echo EOF; } >> "$GITHUB_OUTPUT"
Code examples
New syntax
- id: ver
run: echo "version=$(cat VERSION)" >> "$GITHUB_OUTPUT" # was ::set-output name=version::...
- run: echo "Building ${{ steps.ver.outputs.version }}"How to diagnose
- Source — Your script or an action?
- Version — Latest version of that action?
- Search — grep for ::set-output
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- API rate limit exceeded GitHub Actions: HttpError: API rate limit exceeded for installation ID 123456 / secondary rate limit
- Cache not found / Unable to reserve cache GitHub Actions: Cache not found for input keys: npm-Linux-abc123 / Failed to save: Unable to reserve cache with key, another job may be creating this cache
- Credentials could not be loaded GitHub Actions: Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers
Most viewed in CI/CD
- The process '/usr/bin/git' failed with exit code 128 GitHub Actions: Error: The process '/usr/bin/git' failed with exit code 128
- This job is stuck because you don't have any active runners GitLab CI: This job is stuck because you don't have any active runners online or available with any of these tags assigned to them
- Resource not accessible by integration GitHub Actions: Error: Resource not accessible by integration (403)
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 25 Oct 2026