fix: work around git dubious ownership errors in container jobs (#317)

This commit is contained in:
Sascha Bratton
2026-07-02 13:41:07 -04:00
committed by GitHub
parent f3ceefdc7e
commit 928037783a
8 changed files with 833 additions and 40 deletions

View File

@@ -14,6 +14,7 @@ import {
} from './filter'
import {File, ChangeStatus} from './file'
import * as git from './git'
import {cleanup as cleanupSafeDirectory} from './safe-directory'
import {backslashEscape, shellEscape} from './list-format/shell-escape'
import {csvEscape} from './list-format/csv-escape'
@@ -55,6 +56,8 @@ async function run(): Promise<void> {
exportResults(results, listFiles)
} catch (error) {
core.setFailed(getErrorMessage(error))
} finally {
await cleanupSafeDirectory()
}
}