Skip to content

Apply workflow example does not work for private repositories. #14

@antonlunden

Description

@antonlunden

Running the apply workflow example in a private repository results in the following error:

==> Repository: **redacted**
==> Artifact name: pgschema-plan-64
==> Local path: .
==> Workflow name: pgschema-multifile-plan.yml
==> Workflow conclusion: success
==> PR: 64
==> Commit: ...
==> Allow forks: false
Error: Resource not accessible by integration - https://docs.github.com/rest/actions/workflow-runs#list-workflow-runs-for-a-workflow

The download artifact action used in the example apply workflows seems to rely on listing workflow runs. As described in the documentation, unless the resources are public, the actions: read permission must be set.

I would suggest adding to both apply workflow permissions (single, multi):
actions: read # Required if repository is private

If you agree with this analysis, let me know and I can create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions