Skip to content

Migrate github.com/SermoDigital to github.com/golang-jwt for 1.27.0 c… #48

Migrate github.com/SermoDigital to github.com/golang-jwt for 1.27.0 c…

Migrate github.com/SermoDigital to github.com/golang-jwt for 1.27.0 c… #48

name: Remove safe-to-test label on new commits

Check warning on line 1 in .github/workflows/remove-safe-to-test-label.yml

View workflow run for this annotation

GitHub Actions / Remove safe-to-test label on new commits

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:
branches:
- main
- v8
types:
- synchronize
jobs:
remove-label:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: contains(github.event.pull_request.labels.*.name, 'safe-to-test')
steps:
- name: Remove safe-to-test label
run: gh pr edit "${{ github.event.pull_request.number }}" --remove-label "safe-to-test" --repo "${{ github.repository }}"
env:
GH_TOKEN: ${{ github.token }}