Skip to content

No secret + no env crashes #56

@Subtixx

Description

@Subtixx
▶  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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions