Skip to content

The Format Code build step fails for PRs from external contributors #3878

@jamescrosswell

Description

@jamescrosswell

When running CI builds for PRs from external contributors, on a fork of our repo, the Format Code build step fails.

For example, this run against the thisisthekap:br_3876_add_mapping_for_EnableAppHangTrackingV2 branch yields:

Run ./scripts/commit-formatted-code.sh $GITHUB_HEAD_REF
...
error: pathspec 'br_3876_add_mapping_for_EnableAppHangTrackingV2' did not match any file(s) known to git

I assume it's trying to push to a branch on our local repo that doesn't exist.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions