mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2749] Cannot supply GITHUB_TOKEN secret for actions separately from the token act uses #1245
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#1245
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 @feynmanix on GitHub (May 7, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2749
Act version
act version 0.2.77
Feature description
I need to test how my GitHub workflows handle GITHUB_TOKEN, but it must not be a real token to prevent accidental damage. It is possible to supply a custom token value with
-s GITHUB_TOKEN="gho_xxx". However, it makes act fail because it then tries to use the token to clone actions and fails with:I would like to be able to specify the token for act to use and for the workflows to use separately. E.g., there could be a special option
--github-token, or a special environment variable for this (e.g.,ACT_GITHUB_TOKEN). The latter may be safer because it doesn't force the user to enter the token on the command line.The relevant code seems to be root.go, where the token to use is configured, and git.go where it's used.