Cache authentication required #155
Labels
No Label
kind
bug
kind
build
kind/compatible
kind
dependencies
kind
docs
kind
enhancement
kind
feature
kind
help wanted
kind
proposal
kind
refactor
related
act
related
environment
related
exec
related
gitea
related
workflow
reviewed
confirmed
reviewed
duplicate
reviewed
invalid
reviewed
needs feedback
reviewed
wontfix
reviewed
workaround
No Milestone
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/act_runner#155
Loading…
Reference in New Issue
Block a user
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?
When I use the cache action I get:
This is the action, basically taken from github docs
https://gitea.com/actions/cache
doesn't exist. Maybe you need to use absolute address likeuses: https://github.com/actions/cache
.I did and it fails. Not to mention the
hashFiles('**/package-lock.json')
didn't work, had to hash them manually in a run.Now Gitea Actions doesn't support
hashFiles
function. But there is ago-hashfiles
action that can be used to get the hash. See https://gitea.com/actions/go-hashfilesI just used sha1sum for the file hashing
I don't get it, have you tried using https://gitea.com/actions/go-hashfiles to replace
${{ hashFiles('**/package-lock.json') }}
?Wait, I think the error is caused by
That means the job container cannot connect to the act runner.
However, the
hashFiles
does't work too, it results in empty string.So the key is
Linux-build-cache-node-modules-
.well the runner uses the network
gitea_act_runner_default
for the hash I did:
${{ env.PACKAGE_HASH }}
and before that I ran
PACKAGE_HASH=$(sha1sum ${{ github.workspace }}/package-lock.json)
So does it work now?
no
I believe the network on your host is a little complex, so the runner can't detect the right ip to use.
I think you can specify the ip manually by config file.
See https://gitea.com/gitea/act_runner#configuration
Could you please set the host to the LAN IP and try again?
Hi @simeonradivoev, is your
act_runner
started by a docker image?yes
I encountered the same error.