oss-fuzz: [CIFuzz]: CIFuzz seems to be incompatible with forks

I opened a PR against a fork and CIFuzz failed there with

2020-04-29 05:10:21,600 - root - DEBUG - Stderr of command 'git clone https://github.com/systemd/systemd systemd' is Cloning into 'systemd'...
.
2020-04-29 05:10:21,845 - root - DEBUG - Stderr of command 'git fetch origin refs/pull/1/merge' is fatal: Couldn't find remote ref refs/pull/1/merge
.
Running: docker build -t gcr.io/oss-fuzz/systemd projects/systemd
2020-04-29 05:10:21,846 - root - ERROR - Can not check out requested state.
2020-04-29 05:10:21,846 - root - ERROR - Error building fuzzers for project systemd with pull request refs/pull/1/merge.

I’m not sure what to do about it but given that GitHub Actions are turned on by default everywhere I’d say it should probably be skipped if the target repository is different from what CIFuzz expects. On Travis CI something like [[ "$TRAVIS_REPO_SLUG" = "systemd/systemd" ]] is used to protect the scripts from forks.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (14 by maintainers)

Commits related to this issue

Most upvoted comments

hi, confusingly CI-Fuzz checks out the wrong PR on forks, I guess this is related to this bug report?

If I open PR 1 on my fork, it instead builds PR 1 of the original repo.