{
"message": "No common ancestor between 03f7ef390fef7f30111e6a5bafc345f4389cbea8 and 5b4d124ec29c81900f0c34a89c7de23405dbd791.",
"documentation_url": "https://docs.github.com/rest/commits/commits#compare-two-commits"
}
Disclaimer: I have no attachment to this workflow or this repository. I forked the repository, set a special empty default branch and then pushed a commit onto another branch which tripped on this workflow. The workflow tried to compare the default branch (which is intentionally orphaned from everything else) with another branch. The results were a crash.
Beyond that, I believe that this organization defaults to read-only permissions for workflows.
Describe the bug A clear and concise description of what the bug is.
https://api.github.com/repos/check-spelling/java-patterns/compare/03f7ef390fef7f30111e6a5bafc345f4389cbea8...5b4d124ec29c81900f0c34a89c7de23405dbd791
Workflow https://github.com/check-spelling/java-patterns/runs/7944130604?check_suite_focus=true https://github.com/check-spelling/java-patterns/actions/runs/2901035467/workflow
Expected behavior A clear and concise description of what you expected to happen.
Additional context Add any other context about the problem here.
Log
``` 2022-08-22T03:21:17.6490005Z Requested labels: ubuntu-latest 2022-08-22T03:21:17.6490041Z Job defined at: check-spelling/java-patterns/.github/workflows/check-urls.yml@refs/heads/spell-check-with-spelling 2022-08-22T03:21:17.6490059Z Waiting for a runner to pick up this job... 2022-08-22T03:21:19.5692183Z Job is waiting for a hosted runner to come online. 2022-08-22T03:21:23.7800476Z Job is about to start running on the hosted runner: Hosted Agent (hosted) 2022-08-22T03:21:27.1263440Z Current runner version: '2.295.0' 2022-08-22T03:21:27.1293397Z ##[group]Operating System 2022-08-22T03:21:27.1294018Z Ubuntu 2022-08-22T03:21:27.1294310Z 20.04.4 2022-08-22T03:21:27.1294665Z LTS 2022-08-22T03:21:27.1295135Z ##[endgroup] 2022-08-22T03:21:27.1295480Z ##[group]Virtual Environment 2022-08-22T03:21:27.1295923Z Environment: ubuntu-20.04 2022-08-22T03:21:27.1296328Z Version: 20220814.1 2022-08-22T03:21:27.1296899Z Included Software: https://github.com/actions/runner-images/blob/ubuntu20/20220814.1/images/linux/Ubuntu2004-Readme.md 2022-08-22T03:21:27.1297700Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu20%2F20220814.1 2022-08-22T03:21:27.1298230Z ##[endgroup] 2022-08-22T03:21:27.1298633Z ##[group]Runner Image Provisioner 2022-08-22T03:21:27.1299005Z 1.0.0.0-main-20220812-3 2022-08-22T03:21:27.1299428Z ##[endgroup] 2022-08-22T03:21:27.1300137Z ##[group]GITHUB_TOKEN Permissions 2022-08-22T03:21:27.1300736Z Contents: read 2022-08-22T03:21:27.1301289Z Metadata: read 2022-08-22T03:21:27.1301778Z ##[endgroup] 2022-08-22T03:21:27.1305722Z Secret source: Actions 2022-08-22T03:21:27.1306310Z Prepare workflow directory 2022-08-22T03:21:27.2264622Z Prepare all required actions 2022-08-22T03:21:27.2473486Z Getting action download info 2022-08-22T03:21:27.4968704Z Download action repository 'actions/checkout@v2' (SHA:7884fcad6b5d53d10323aee724dc68d8b9096a2e) 2022-08-22T03:21:28.2082334Z Download action repository 'trilom/file-changes-action@v1.2.4' (SHA:a6ca26c14274c33b15e6499323aac178af06ad4b) 2022-08-22T03:21:28.7948628Z Download action repository 'ruby/setup-ruby@v1' (SHA:87ccb7599f56623090bd4a1c8ece2c4091856de3) 2022-08-22T03:21:29.3934830Z Download action repository 'actions/upload-artifact@v2' (SHA:82c141cc518b40d92cc801eee768e7aafc9c2fa2) 2022-08-22T03:21:30.1020082Z ##[group]Run actions/checkout@v2 2022-08-22T03:21:30.1020418Z with: 2022-08-22T03:21:30.1020705Z repository: check-spelling/java-patterns 2022-08-22T03:21:30.1021238Z token: *** 2022-08-22T03:21:30.1021483Z ssh-strict: true 2022-08-22T03:21:30.1021769Z persist-credentials: true 2022-08-22T03:21:30.1022023Z clean: true 2022-08-22T03:21:30.1022257Z fetch-depth: 1 2022-08-22T03:21:30.1022502Z lfs: false 2022-08-22T03:21:30.1022722Z submodules: false 2022-08-22T03:21:30.1022997Z set-safe-directory: true 2022-08-22T03:21:30.1023264Z ##[endgroup] 2022-08-22T03:21:30.4446389Z Syncing repository: check-spelling/java-patterns 2022-08-22T03:21:30.4448312Z ##[group]Getting Git version info 2022-08-22T03:21:30.4448898Z Working directory is '/home/runner/work/java-patterns/java-patterns' 2022-08-22T03:21:30.4449553Z [command]/usr/bin/git version 2022-08-22T03:21:30.4599080Z git version 2.37.2 2022-08-22T03:21:30.4626760Z ##[endgroup] 2022-08-22T03:21:30.4650438Z Temporarily overriding HOME='/home/runner/work/_temp/a784cb65-8704-4233-9e3b-1a605af6e3b3' before making global git config changes 2022-08-22T03:21:30.4651241Z Adding repository directory to the temporary git global config as a safe directory 2022-08-22T03:21:30.4651938Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/java-patterns/java-patterns 2022-08-22T03:21:30.4702852Z Deleting the contents of '/home/runner/work/java-patterns/java-patterns' 2022-08-22T03:21:30.4704054Z ##[group]Initializing the repository 2022-08-22T03:21:30.4706651Z [command]/usr/bin/git init /home/runner/work/java-patterns/java-patterns 2022-08-22T03:21:30.4781669Z hint: Using 'master' as the name for the initial branch. This default branch name 2022-08-22T03:21:30.4782750Z hint: is subject to change. To configure the initial branch name to use in all 2022-08-22T03:21:30.4783302Z hint: of your new repositories, which will suppress this warning, call: 2022-08-22T03:21:30.4783631Z hint: 2022-08-22T03:21:30.4784182Z hint: git config --global init.defaultBranchDisclaimer: I have no attachment to this workflow or this repository. I forked the repository, set a special empty default branch and then pushed a commit onto another branch which tripped on this workflow. The workflow tried to compare the default branch (which is intentionally orphaned from everything else) with another branch. The results were a crash.
Beyond that, I believe that this organization defaults to read-only permissions for workflows.