chore: fix ansible dir ownership in tests (#6563)
Some checks are pending
Publish Images / Build and Test (push) Waiting to run
Publish Images / Release (push) Blocked by required conditions
Build and Test / Set build metadata (push) Waiting to run
Build and Test / Build and Test (push) Blocked by required conditions
Build and Test / Test the Super-linter GitHub Action (push) Blocked by required conditions
Build and Test / Build test suite matrix (push) Waiting to run
Build and Test / Run test cases (push) Blocked by required conditions
Build and Test / Check if all the tests passed (push) Blocked by required conditions
Build and Test / preview-release-notes (push) Waiting to run
Lint commit / commitlint (push) Waiting to run

Change ownership of files and dirs produced by Ansible because it
creates directories in the working directory that are owned by the user
running ansible-lint (root in this case).
This commit is contained in:
Marco Ferrari 2025-02-17 13:31:24 +00:00 committed by GitHub
parent a5e3381dae
commit ff7ebeef9d
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: B5690EEEBB952194

View file

@ -489,7 +489,8 @@ if [[ "${VERIFY_FIX_MODE:-}" == "true" ]]; then
fi
if find "${BAD_TEST_CASE_DESTINATION_PATH}" \( -type f ! -readable -or -type d \( ! -readable -or ! -executable -or ! -writable \) \) -print | grep -q .; then
if [[ "${LANGUAGE}" == "DOTNET_SLN_FORMAT_ANALYZERS" ]] ||
if [[ "${LANGUAGE}" == "ANSIBLE" ]] ||
[[ "${LANGUAGE}" == "DOTNET_SLN_FORMAT_ANALYZERS" ]] ||
[[ "${LANGUAGE}" == "DOTNET_SLN_FORMAT_STYLE" ]] ||
[[ "${LANGUAGE}" == "DOTNET_SLN_FORMAT_WHITESPACE" ]] ||
[[ "${LANGUAGE}" == "RUST_CLIPPY" ]] ||