From 4d1579fa32c0545eda033a4a40cb6c6b3cfb4688 Mon Sep 17 00:00:00 2001 From: tytan652 Date: Sun, 8 Mar 2026 13:15:40 +0100 Subject: [PATCH] CI: Add local exceptions to flatpak-builder-lint For some reason the action can no longer check if the URL generated in the metainfo is reachable. So to avoid keeping CI failing, local exceptions rule are added. Unfortunately it requires to keep a copy of exceptions already submitted to Flathub. --- .github/actions/flatpak-builder-lint/action.yaml | 2 +- .github/actions/flatpak-builder-lint/exceptions.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .github/actions/flatpak-builder-lint/exceptions.json diff --git a/.github/actions/flatpak-builder-lint/action.yaml b/.github/actions/flatpak-builder-lint/action.yaml index a6fd54f496eb89..481ff6c534f752 100644 --- a/.github/actions/flatpak-builder-lint/action.yaml +++ b/.github/actions/flatpak-builder-lint/action.yaml @@ -32,7 +32,7 @@ runs: : Run flatpak-builder-lint return=0 - result="$(flatpak-builder-lint --exceptions ${{ inputs.artifact }} ${{ inputs.path }})" || return=$? + result="$(flatpak-builder-lint --exceptions --user-exceptions ${GITHUB_ACTION_PATH}/exceptions.json ${{ inputs.artifact }} ${{ inputs.path }})" || return=$? if [[ ${return} != 0 && -z "${result}" ]]; then echo "::error::Error while running flatpak-builder-lint" diff --git a/.github/actions/flatpak-builder-lint/exceptions.json b/.github/actions/flatpak-builder-lint/exceptions.json new file mode 100644 index 00000000000000..b6e9d61aa85701 --- /dev/null +++ b/.github/actions/flatpak-builder-lint/exceptions.json @@ -0,0 +1,8 @@ +{ + "com.obsproject.Studio": [ + "finish-args-flatpak-spawn-access", + "external-gitmodule-url-found", + "finish-args-host-filesystem-access", + "appstream-flathub-manifest-url-not-reachable" + ] +}