The SuperLinter checks started to fail since yesterday with a message of the following kind:
fatal: Invalid symmetric difference expression master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d
2021-03-23 15:32:48 [INFO] Failed to get Diff with:[git -C /github/workspace diff --name-only master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d --diff-filter=d]
Examples from different repositories:
The check does not fail unexpectedly.
Examples from different repositories:
fatal: Invalid symmetric difference expression master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d
2021-03-23 15:32:48 [INFO] Failed to get Diff with:[git -C /github/workspace diff --name-only master...a5b0bbf7126dc130ee823f60f78b4cae6d4f5f4d --diff-filter=d]
The repositories use the latest version 3. I tried with v3.15.3, it fails with the same fatal.
We are also experiencing this issue:
https://github.com/lest/prometheus-rpm/pull/366/checks?check_run_id=2177570818
I resolved the issue by adding fetch-depth: 0 to the workflow like in the example.
I resolved the issue by adding
fetch-depth: 0to the workflow like in the example.
This has fixed linting issues in our repository too.
Most helpful comment
I resolved the issue by adding
fetch-depth: 0to the workflow like in the example.