mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #2698] Job output secret accessible in act nott in github action #1221
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#1221
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 @ErnestoArtigas on GitHub (Mar 17, 2025).
Original GitHub issue: https://github.com/nektos/act/issues/2698
Bug report info
Command used with act
Describe issue
I've found a bug, where you can use the output of a job that is Github flags as a secret, whereas on Github Actions' runner it won't be picked up.
In this stripped down code, I have a workflow with two jobs.
first_joboutputs a value calledsecret_variable, which value is a secret that is outputted in the stepdummy_step. The second job,test, tries to use it. In act, it outputs the value without issues:However, in Github Actions' runner, it won't be picked up:
From the logs from the
first_job, Github Actions' runner won't pick the secret because it's flagged as well:The only way to "fix" the issue is to move the
dummy_stepin the same job that calls it, as Github refuses to output a secret flagged variable from a job to another. Act not acting like Github Actions' led me to an issue where my workflow worked locally, but not on Github Actions' runner.Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response