Skip to content

fix(tags): clear draft on cancel #2578

fix(tags): clear draft on cancel

fix(tags): clear draft on cancel #2578

# Verifies that every `uses:` ref under .github/ is on the ASF Infrastructure
# GitHub Actions allowlist (apache/infrastructure-actions). An action that is
# not allowlisted fails at "Set up job" with no logs and no notification, so
# this check surfaces the problem at PR time instead. It also warns (without
# failing) when a pinned SHA's allowlist entry is about to expire.
name: ASF Allowlist Check
on:
workflow_dispatch:
pull_request:
# No `paths` filter: `asf-allowlist-check-required` is a required status check, so it
# must report on every PR or PRs that do not touch .github/ stay BLOCKED.
types: [opened, synchronize, reopened, ready_for_review]
push:
branches:
- "master"
- "[0-9].[0-9]*"
paths:
- ".github/**"
schedule:
# Weekly at 06:00 UTC every Monday, so allowlist expirations are surfaced even when nothing under
# .github/ has changed.
- cron: "0 6 * * 1"
permissions:
contents: read
# cancel previous workflow jobs for PRs
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: true
jobs:
asf-allowlist-check:
runs-on: ubuntu-slim
steps:
- name: Checkout Repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check action refs against the ASF allowlist
uses: apache/infrastructure-actions/allowlist-check@47b297bbe90f580139129bee531bd84bd95b7f5d # allowlist-check/v1.0.4
with:
# Default scan-glob is .github/**/*.yml, which misses .yaml files.
scan-glob: ".github/**/*.y*ml"
asf-allowlist-check-required:
needs: [asf-allowlist-check]
if: always()
runs-on: ubuntu-slim
timeout-minutes: 5
permissions: {}
steps:
- name: Check asf-allowlist-check result
env:
RESULT: ${{ needs.asf-allowlist-check.result }}
run: |
if [ "$RESULT" != "success" ] && [ "$RESULT" != "skipped" ]; then
echo "asf-allowlist-check did not pass (result: $RESULT)"
exit 1
fi
echo "asf-allowlist-check result: $RESULT"