diff --git a/.github/scripts/validate/report.sh b/.github/scripts/validate/report.sh index 4aaac27..7dfbcc1 100755 --- a/.github/scripts/validate/report.sh +++ b/.github/scripts/validate/report.sh @@ -106,7 +106,7 @@ done else echo "$COMBINED_BODY" - if [[ -n "${OUTSIDE_FILES:-}" ]]; then + if [[ -n "${OUTSIDE_FILES:-}" && "${OUTSIDE_VIOLATION:-}" == "true" ]]; then OVERALL_FAILED=1 echo "" echo "⚠️ This PR modifies files outside of \`plugins/\`, which requires write access to the repository. These changes will block merging." diff --git a/.github/workflows/validate-plugin.yml b/.github/workflows/validate-plugin.yml index ac15872..47f8c0d 100644 --- a/.github/workflows/validate-plugin.yml +++ b/.github/workflows/validate-plugin.yml @@ -630,6 +630,7 @@ jobs: CODEQL_WARNINGS: ${{ needs.codeql-analyze.outputs.codeql_warnings }} CODEQL_MEDIUMS: ${{ needs.codeql-analyze.outputs.codeql_mediums }} OUTSIDE_FILES: ${{ needs.detect-changes.outputs.outside_files }} + OUTSIDE_VIOLATION: ${{ needs.detect-changes.outputs.outside_violation }} PUB_KEY_CHANGED: ${{ needs.detect-changes.outputs.pub_key_changed }} run: | chmod +x .github/scripts/validate/*.sh