Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust Auto Format workflow fails on pull request by other user #36

Open
Tamschi opened this issue Oct 17, 2021 · 0 comments
Open

Rust Auto Format workflow fails on pull request by other user #36

Tamschi opened this issue Oct 17, 2021 · 0 comments
Labels
domain: GitHub Actions Involves GitHub Actions. type: bug Something isn't working as expected

Comments

@Tamschi
Copy link
Owner

Tamschi commented Oct 17, 2021

Describe the bug

The Rust Auto Format workflow fails when running on pull requests made by another user.

Expected behavior

There may be a permission or repository confusion issue here.
The check should be lenient if it can't modify the PR branch.

Screenshots

Error log excerpt:

Fetching the repository
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/structopt-for-h*:refs/remotes/origin/structopt-for-h* +refs/tags/structopt-for-h*:refs/tags/structopt-for-h*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 12 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/structopt-for-h*:refs/remotes/origin/structopt-for-h* +refs/tags/structopt-for-h*:refs/tags/structopt-for-h*
  The process '/usr/bin/git' failed with exit code 1
  Waiting 18 seconds before trying again
  /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +refs/heads/structopt-for-h*:refs/remotes/origin/structopt-for-h* +refs/tags/structopt-for-h*:refs/tags/structopt-for-h*
  Error: The process '/usr/bin/git' failed with exit code 1

please complete the following information:

  • rustc --version: Not applicable.
  • Crate version (if applicable): Not applicable.

Additional context

See also: Tamschi/reserde#31

@Tamschi Tamschi added type: bug Something isn't working as expected domain: GitHub Actions Involves GitHub Actions. labels Oct 17, 2021
@Tamschi Tamschi changed the title Rust Auto Format workflow on pull request Rust Auto Format workflow fails on pull request by other user Oct 17, 2021
Tamschi added a commit that referenced this issue Oct 17, 2021
This is a preliminary fix for #36 so that the workflow doesn't get in the way. I'd like to eventually still have it.
Tamschi added a commit that referenced this issue Oct 17, 2021
This is a preliminary fix for #36 so that the workflow doesn't get in the way. I'd like to eventually still have it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: GitHub Actions Involves GitHub Actions. type: bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

1 participant