Skip to content

Docs: Security Hub ECR images in use only #47519

Docs: Security Hub ECR images in use only

Docs: Security Hub ECR images in use only #47519

name: Cancel outdated workflow runs

Check warning on line 1 in .github/workflows/cancel-outdated-workflow-runs.yml

View workflow run for this annotation

GitHub Actions / Cancel outdated workflow runs

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
# For each branch (i.e. PR) we're only interested in the latest commit to be tested
# this job cancels any previous workflow runs still in progress on the same branch
# freeing up spots in the queue for the most recent commits
# and saving some trees along the way
# run on pull_request_target because we need write access to the GItHub API
# don't run any code from PR here!
on: [push, pull_request_target]
jobs:
cancel:
name: 'Cancel Outdated Workflow Runs'
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: styfle/cancel-workflow-action@d07a454dad7609a92316b57b23c9ccfd4f59af66 # 0.13.1
with:
workflow_id: 'integration-tests.yml,k8s-tests.yml,unit-tests.yml,validate_docs_build.yml,test-helm-chart.yml,ruff.yml,shellcheck.yml'
access_token: ${{ github.token }}