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

Dependabot build fails #58

Closed
JeroenKnoops opened this issue Oct 18, 2021 · 4 comments
Closed

Dependabot build fails #58

JeroenKnoops opened this issue Oct 18, 2021 · 4 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@JeroenKnoops
Copy link
Member

Problem

Dependabot build fails on generating the provenance file.

Example

Error message

2021/10/18 08:01:01 failed to unmarshal github context json: invalid character 'h' in string escape code

Error job

https://github.com/philips-labs/slsa-provenance-action/pull/55/checks?check_run_id=3923877684

@JeroenKnoops
Copy link
Member Author

Workflow is failing on pull-request build.

GitHub events are not the same for the same commit.

Examples.

Two events from the same commit:

@marcofranssen marcofranssen added bug Something isn't working help wanted Extra attention is needed labels Oct 19, 2021
@ribbybibby
Copy link

I think I'm running into the same issue described here where the content of the commit message can mess up the escaping and cause the action to fail:
https://github.com/ribbybibby/testy/runs/4596564618?check_suite_focus=true#step:5:63

The commit message in this case is:

Make @a change
"@in quotes"

Do you need to pass the whole github and runner contexts as json? Could you pass the individual fields you need in instead as flags?

@ribbybibby
Copy link

Or, get everything from the environment variables instead: https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables?

@marcofranssen
Copy link
Member

This issue has been resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants