Skip to content

cloud: document IPv6 support for Dedicated private endpoint connections #42660

cloud: document IPv6 support for Dedicated private endpoint connections

cloud: document IPv6 support for Dedicated private endpoint connections #42660

name: Prevent Deletion

Check warning on line 1 in .github/workflows/prevent-deletion.yaml

View workflow run for this annotation

GitHub Actions / Prevent Deletion

Workflow execution policy warning (evaluate mode)

On November 2, 2026, GitHub will restrict `pull_request_target` on public repositories by default. To continue allowing the event trigger, configure an Actions policy. Learn more: https://gh.io/securely-using-pull_request_target#default-policy-for-pull_request_target
on:
pull_request_target:
types: [opened, reopened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
check:
permissions:
checks: write
runs-on: ubuntu-latest
steps:
- name: Checkout base
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 0
- name: Fetch head
env:
HEAD_CLONE_URL: ${{ github.event.pull_request.head.repo.clone_url }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
run: |
git remote add head "$HEAD_CLONE_URL"
git fetch head -- "$HEAD_REF"
- name: Find changes
env:
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: |
git rev-parse "$HEAD_SHA"
if git diff --merge-base --name-only --diff-filter 'D' HEAD "$HEAD_SHA" | grep -E '^media/.*\.(jpg|png|jpeg|gif)$' >/tmp/changed_files; then
cat /tmp/changed_files
jq -n --arg sha "$HEAD_SHA" \
'{name:"Image Deletion Check",head_sha:$sha,status:"completed",conclusion:"failure"}' > /tmp/body.json
jq \
--arg count "$(wc -l /tmp/changed_files | awk '{print $1}')" \
--arg summary "$(cat /tmp/changed_files | sed 's/^/- /')" \
'.output.title = "Found " + $count + " deleted images" | .output.summary = $summary' \
/tmp/body.json > /tmp/body2.json
else
jq -n --arg sha "$HEAD_SHA" \
'{name:"Image Deletion Check",head_sha:$sha,status:"completed",conclusion:"success",output:{title:"OK",summary:"No deleted images"}}' > /tmp/body2.json
fi
- name: Publish result
env:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
run: |
cat /tmp/body2.json
curl \
-sSL \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token $GH_TOKEN" \
-T '/tmp/body2.json' \
"https://api.github.com/repos/$REPO/check-runs"