plain-ocean-92335
12/14/2021, 2:22 PMRun infracost/actions/comment@v1
Run # handle multiple paths
Notice: Using paths: --path /tmp/infracost.json
Output saved to comment.md
Run infracost/compost-action@master
Detected GitHub Actions
Platform: github
Project: REDACTED
Target type: pull-request
Target ref: 392
Finding matching comments for tag `compost-comment`
Error: GraphqlResponseError: Request failed due to following response errors:
- Resource not accessible by integration
this is what we have set:
permissions:
id-token: write
contents: read
discussions: write
crooked-daybreak-55253
12/14/2021, 2:31 PMpull_request: write
or maybe issues: write
. I don’t think discussions: write
is needed.plain-ocean-92335
12/14/2021, 2:32 PMid-token: write
contents: read
pull-requests: write
trying this nowpull-requests: write
did the trick. Thankscrooked-daybreak-55253
12/14/2021, 2:38 PMcontents: write
would be needed since we’re just writing to the file system and not using the api to modify anything. https://docs.github.com/en/rest/reference/permissions-required-for-github-apps#permission-on-contentswhite-airport-8778
plain-ocean-92335
12/16/2021, 8:41 AMpermissions:
setting to an examples workflow?white-airport-8778
behavior: update # Create a single comment and update it. See <https://github.com/infracost/actions/tree/master/comment> for other options