My goal is to generate verified commits, using GitHub's Graphql API. I created a test repository to validate the verified PR creation, and I see the GitHub Action generating the new README.md
file. However, it is not added to existing PR (link removed, see provided answer)
in progress.
When the GitHub Action runs, I get the following error:
Switched to a new branch 'feature/verified-commit'
branch 'feature/verified-commit' set up to track 'origin/feature/verified-commit'.
time="2024-12-23T23:30:48Z" level=info msg="Found Chart directories [roles/argo-cd]"
time="2024-12-23T23:30:48Z" level=info msg="Generating README Documentation for chart roles/argo-cd"
-rw-r--r-- 1 runner docker 409 Dec 23 23:30 .github/api/commit.gql
error parsing " 'query" value: open .github/api/commit.gql': no such file or directory
Thank you for letting me know what I miss.
I ended-up using the GitHub GraphQL API with actions/github-script
into workflow, instead of actually using the binary. The step handles properly both additions and deletions, with CreateCommitOnBranch
mutation.
Previous implementation, without verified signature:
New implementation:
You can examine the actual PR with the new implementation.