Skip to content

No comment push on PR from fork #2

Closed

Description

@alagoutte

When use this PSSA Github Actions, there is no comment push on PR
and on github action log, i get :

Invoke-RestMethod : {"message":"Resource not accessible by integration","documentation_url":"https://developer.github.com/v3/issues/comments/#create-a-comment"}
At /entrypoint.ps1:61 char:5
+     Invoke-RestMethod @params > $null
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Method: POST, Reque\u2026application/json
}:HttpRequestMessage) [Invoke-RestMethod], HttpResponseException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
##[error]Docker run failed with exit code 1

You can look PowerAruba/PowerArubaCP#23 and https://github.com/PowerAruba/PowerArubaCP/pull/23/checks

Activity

  1. self-assigned this
    on Oct 10, 2019
  2. devblackops commented on Oct 11, 2019

    @devblackops
    Owner

    Hi @alagoutte. This errors looks to be some type of permissions issue. Have you setup a custom secret that the action is using? If so, try removing that. GITHUB_TOKEN is a built into Actions. There should be no need to create a secret.

  3. alagoutte commented on Oct 11, 2019

    @alagoutte
    ContributorAuthor

    Hi,

    There is no secret configured (and it is possible to set a secret start by GITHUB_...)

  4. JM2K69 commented on Nov 27, 2019

    @JM2K69

    Hi I have the same issue with @alagoutte in my project FreeNas powershell module i try with the line secret and without same issue ? do you have an idea ?

  5. alagoutte commented on Apr 28, 2020

    @alagoutte
    ContributorAuthor

    Hi @devblackops any news about this issue ?

  6. changed the title [-]No comment push on PR[/-] [+]No comment push on PR from fork[/+] on May 15, 2020
  7. alagoutte commented on May 15, 2020

    @alagoutte
    ContributorAuthor

    After some tests, it is coming from GitHub Action limitation on fork repo
    You don't have GITHUB_TOKEN on PR from a fork (it is a limited to read...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions