-
Notifications
You must be signed in to change notification settings - Fork 5
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
$COMMITS_URL issues #11
Comments
Would help if you could share some YAML snippets of the workflow you're calling this action from. For example: what event does it run on, And for those repos where you're seeing the error, does it always happen there or only in certain PRs or certain circumstances? |
Also, I'm seeing now that not every uses: 1Password/check-signed-commits-action@519a1dbdded076a15e1d628896a3b6beb3a9ed0b |
I totally missed your comment, sorry. Here is how I use it https://github.com/kubefirst/docs/blob/main/.github/workflows/check-signed.yml . It's not the one that is failing, but it's the same exact code in the same exact kind of repository (I cannot share the other one). I'll test the branch, and report back, thanks |
So your branch branch is giving me more information. The |
Does it work if you change |
So it seems like the problem is only happening with private repositories. We made public the ones where I had this issue, and now it's back to working properly. |
In two out of six repositories where we are using this action, I'm having an error on all pull requests:
jq: error (at <stdin>:5): Cannot index string with string "commit"
It seems like in some cases,
github.event.pull_request
will be empty (see the discussion at https://github.com/orgs/community/discussions/25220). There are some workarounds in the thread.Unfortunately, it happened only in some repositories I cannot share here as they contain private code, so I cannot show you a case where this issue is happening. I would gladly help debug, provide information about the workflow, and test any fix you may have.
I may try to fix the action myself once I have the time, but we are in the middle of a big release, so time is scarce for now.
The text was updated successfully, but these errors were encountered: