spack/.github/workflows
Todd Gamblin 5f8c706128
Consolidate how Spack uses git (#34700)
Local `git` tests will fail with `fatal: transport 'file' not allowed` when using git 2.38.1 or higher, due to a fix for `CVE-2022-39253`.

This was fixed in CI in #33429, but that doesn't help the issue for anyone's local environment. Instead of fixing this with git config in CI, we should ensure that the tests run anywhere.

- [x] Introduce `spack.util.git`.
- [x] Use `spack.util.git.get_git()` to get a git executable, instead of `which("git")` everywhere.
- [x] Make all `git` tests use a `git` fixture that goes through `spack.util.git.get_git()`.
- [x] Add `-c protocol.file.allow=always` to all `git` invocations under `pytest`.
- [x] Revert changes from #33429, which are no longer needed.
2022-12-28 00:44:11 -08:00
..
audit.yaml build(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#34480) 2022-12-13 09:05:50 -07:00
bootstrap-test.sh Deprecate spack bootstrap trust/untrust (#33600) 2022-10-29 12:24:26 -07:00
bootstrap.yml build(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#34480) 2022-12-13 09:05:50 -07:00
build-containers.yml build(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#34480) 2022-12-13 09:05:50 -07:00
ci.yaml build(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#34480) 2022-12-13 09:05:50 -07:00
execute_installer.ps1 Add Github Actions for Windows (#24504) 2022-03-17 09:01:01 -07:00
generate_spack_yaml_containerize.sh Update Dockerfiles and images for Spack v0.18.0 (#30216) 2022-04-22 08:51:26 +02:00
install_spack.sh Update actions/setup-python to latest version (#28634) 2022-01-28 14:17:59 +01:00
setup_git.ps1 Consolidate how Spack uses git (#34700) 2022-12-28 00:44:11 -08:00
setup_git.sh Consolidate how Spack uses git (#34700) 2022-12-28 00:44:11 -08:00
system_shortcut_check.ps1 Add Github Actions for Windows (#24504) 2022-03-17 09:01:01 -07:00
unit_tests.yaml build(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#34480) 2022-12-13 09:05:50 -07:00
valid-style.yml build(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#34480) 2022-12-13 09:05:50 -07:00
windows_python.yml build(deps): bump actions/checkout from 3.1.0 to 3.2.0 (#34480) 2022-12-13 09:05:50 -07:00