Skip to content
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

Action not working on reusable workflows #120

Open
mBlomsterberg opened this issue Jul 5, 2023 · 1 comment
Open

Action not working on reusable workflows #120

mBlomsterberg opened this issue Jul 5, 2023 · 1 comment

Comments

@mBlomsterberg
Copy link

When calling the gitleaks action from a reusable workflow the following error is received:

TypeError: Cannot read properties of undefined (reading 'commitSha')
    at /home/runner/work/_actions/gitleaks/gitleaks-action/v2.3.2/dist/index.js:70938:52
    at Array.forEach (<anonymous>)
    at Object.Write (/home/runner/work/_actions/gitleaks/gitleaks-action/v2.3.2/dist/index.js:70937:27)
    at start (/home/runner/work/_actions/gitleaks/gitleaks-action/v2.3.2/dist/index.js:71385:19)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Seems like the GITHUB_EVENT_PATH is working on the subworkflow event path.

@bodgit
Copy link

bodgit commented Jan 3, 2024

Are you calling the reusable workflow from an event other than a pull request?

I've just set up my reusable workflow to run on pull requests and it's working fine. I saw this issue and was expecting failure but it's behaving the same as a regular workflow.

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

2 participants