Open zhutmost opened 5 months ago
Hey @zhutmost did you make sure to enable the dependency graph for your repo?
Hi @ckipp01 . Yes, I have confirmed. The screenshot is attached.
Are there any configurations (such as tokens) that need to be set up?
Hi, @ckipp01 . I have read some issues in other similar repositories for the dependency graph generation.
In this issue, they mentioned that the private repositories can submit graph dependencies only if they have activated a GitHub's paid feature (GHAS).
You can consider optimizing the error message output like what they have done in the above issue. So that the users can get necessary information.
@ckipp01 , I solve this problem by adding these two lines into my workflow yaml.
# The API requires write permission on the repository to submit dependencies
permissions:
contents: write
So that the GITHUB_TOKEN has the write permission. You may consider adding this to your README.
Hey @zhutmost, sure feel free to send in a pr adding this. However I'd recommend adding it to the readme in https://github.com/ckipp01/mill-dependency-submission.
First thanks for your great jobs.
I use the same action yaml in your README, but it fails. The log shows little information, so that I don't know what happened.
It reported a 403 forbidden bug. The action log is as follows.