mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[GH-ISSUE #1929] actions/upload-artifact@v3 fails with Unable to get ACTIONS_RUNTIME_TOKEN env variable #929
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#929
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @CanePlayz on GitHub (Jul 26, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1929
Bug report info
Command used with act
Describe issue
When act encounters the actions/upload-artifact@v3 action, it fails with this output:
Link to GitHub repository
https://github.com/CanePlayz/HDGraph (the build workflow but with ubuntu-latest)
Workflow content
Relevant log output
Additional information
No response
@GuessWhoSamFoo commented on GitHub (Jul 30, 2023):
Have you tried
--artifact-server-pathas descibed in https://github.com/nektos/act/issues/329#issuecomment-1187246629?@CanePlayz commented on GitHub (Jul 30, 2023):
Thanks, but now I get this error:
@github-actions[bot] commented on GitHub (Jan 27, 2024):
Issue is stale and will be closed in 14 days unless there is new activity
@fabiobsantosprogrow commented on GitHub (Feb 1, 2024):
For solved the problem.
To make the solution available for all commands I had this line to the configuration file (~/.actrc):
--artifact-server-path /home/user/act
@almereyda commented on GitHub (Jun 11, 2024):
This worked here:
@mcascone commented on GitHub (Aug 13, 2024):
Shouldn't the file be created in
$HOME/.act, not directly in$HOME/?so it should be
echo "--artifact-server-path $HOME/.act" >> $HOME/.act/.actrcRegardless, this didn't fix the issue for me.
@almereyda commented on GitHub (Aug 13, 2024):
Sad to hear it didn't work for you.
This line lists the cases where
.actrcis being looked for:github.com/nektos/act@102e6cbce0/cmd/root.go (L111)@mcascone commented on GitHub (Aug 13, 2024):
Indeed, i found the same info, and you are correct that the
.actrcshould go in$HOME. Still, this doesn't fix the issue. I believe I read somewhere, I can't find it right now, that it has to do with running on M1 silicon, although I could be wrong.@mcascone commented on GitHub (Aug 15, 2024):
this is just unbelievably frustrating that this doesn't work
@jrzaurin commented on GitHub (Sep 24, 2024):
None of the above worked for me :)
I am on a new Mac M3 pro. Any help, much appreciated
@teocns commented on GitHub (Oct 12, 2024):
M2 here - using the latest actions package release and caching artifacts in ~/.act has fixed it. Thanks to who shared
@mahmud2011 commented on GitHub (Nov 5, 2024):
WFM. M2 here.
@leblancmeneses commented on GitHub (Dec 25, 2024):
you are on an old version of act.
v0.2.61
actions/upload-artifact@v3 worked
actions/upload-artifact@v4 failed
v0.2.70
both v3 and v4 work.
act pull_request -W .github/act.yml -j calculate -e .github/act.payload.json -s GITHUB_TOKEN="fakeToken123" --action-offline-mode --artifact-server-path $(pwd)/.artifacts@ravensorb commented on GitHub (Jul 25, 2025):
That didn't work for me -- running on ubuntu and also testing on wsl2 ubuntu.
Does the artifact server not work anymore?
@mcascone commented on GitHub (Jul 25, 2025):
There’s a new server flag, I think it’s
—new-artifact-serverbut don’t quote me on thatOn Jul 25, 2025, at 4:21 PM, Shawn @.***> wrote:ravensorb left a comment (nektos/act#1929)That didn't work for me -- running on ubuntu and also testing on wsl2 ubuntu.
Does the artifact server not work anymore?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>
@ravensorb commented on GitHub (Jul 28, 2025):
@mcascone -- that was what I was missing! Thank you...