Skip to content

check-removed-urls.yml workflow breaks when PRing from a private fork #436

Description

@lengau

I found this yesterday when updating some internal documentation. Basically, the current configuration of the first checkout action has unexpected permissions side-effects.

The branch from a PR is copied into the main repository (sort of). This gives this repository access to that one branch on the fork, while the fork (being a fork of a private repo and thus itself private) remains inaccessible to these jobs. When you use the checkout action without specifying a repository and a ref, it will use the ref from the fork correctly.

PR incoming for a fix I tested the internal docs repository.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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