Skip to content

No secret + no env crashes #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Subtixx opened this issue Sep 9, 2024 · 0 comments
Open

No secret + no env crashes #56

Subtixx opened this issue Sep 9, 2024 · 0 comments

Comments

@Subtixx
Copy link

Subtixx commented Sep 9, 2024

▶  start     Workflow UI listening on port 3001!
▶  start     Workflow API listening on port 3000!
ℹ  info      Collecting commit information from .git
✖  error     Failed to parse workflow yaml for .github/workflows/gradle-publish.yml
✖  error     TypeError: Cannot read properties of undefined (reading 'forEach')
    at runner (/home/subtixx/.nvm/versions/node/v22.6.0/lib/node_modules/wflow/runner.js:133:21)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

wflow/runner.js

Lines 131 to 134 in 3780be9

// check to see if you're referencing secrets but have no secrets.env file
if (!fileExists.sync("./secrets.env")) {
let found = searchhash.forKey(yamlWorkflow, "env");
found.results.forEach(res => {

Should probably output and error in the form of: "You have not specified a secret for XXX"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant