mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-04 03:48:07 +02:00
fix broken CI (see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html)
try this WIP
This commit is contained in:
parent
97ced9e14f
commit
f98b2edae5
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -73,8 +73,9 @@ jobs:
|
||||
restore-keys: |
|
||||
${{runner.os}}-go-
|
||||
- name: Test code
|
||||
# for file.allow thing see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html
|
||||
run: |
|
||||
PARALLEL_TOTAL=${{ matrix.parallelism }} PARALLEL_INDEX=${{ matrix.index }} go test pkg/integration/deprecated/*.go
|
||||
git config --global protocol.file.allow always && PARALLEL_TOTAL=${{ matrix.parallelism }} PARALLEL_INDEX=${{ matrix.index }} go test pkg/integration/deprecated/*.go
|
||||
integration-tests:
|
||||
runs-on: ubuntu-latest
|
||||
name: "Integration Tests"
|
||||
|
@ -144,6 +144,7 @@ func createFixture(test *IntegrationTest, paths Paths) error {
|
||||
shell.RunCommand(`git config user.email "CI@example.com"`)
|
||||
shell.RunCommand(`git config user.name "CI"`)
|
||||
shell.RunCommand(`git config commit.gpgSign false`)
|
||||
shell.RunCommand(`git config protocol.file.allow always`)
|
||||
|
||||
test.SetupRepo(shell)
|
||||
|
||||
|
@ -11,6 +11,11 @@ git init
|
||||
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
# see https://vielmetti.typepad.com/logbook/2022/10/git-security-fixes-lead-to-fatal-transport-file-not-allowed-error-in-ci-systems-cve-2022-39253.html
|
||||
# NOTE: I don't think this actually works if it's only applied to the repo.
|
||||
# On CI we set the global setting, but given it's a security concern I don't want
|
||||
# people to do that for their locals.
|
||||
git config protocol.file.allow always
|
||||
|
||||
echo test1 > myfile1
|
||||
git add .
|
||||
|
@ -26,5 +26,5 @@ cd ..
|
||||
git clone --bare ./repo other_repo
|
||||
cd repo
|
||||
|
||||
git submodule add ../other_repo
|
||||
git -c protocol.file.allow=always submodule add ../other_repo
|
||||
git commit -am "add submodule"
|
||||
|
@ -23,5 +23,5 @@ cd ..
|
||||
git clone --bare ./repo other_repo
|
||||
cd repo
|
||||
|
||||
git submodule add ../other_repo
|
||||
git -c protocol.file.allow=always submodule add ../other_repo
|
||||
git commit -am "add submodule"
|
||||
|
@ -23,5 +23,5 @@ cd ..
|
||||
git clone --bare ./repo other_repo
|
||||
cd repo
|
||||
|
||||
git submodule add ../other_repo
|
||||
git -c protocol.file.allow=always submodule add ../other_repo
|
||||
git commit -am "add submodule"
|
||||
|
Loading…
Reference in New Issue
Block a user