Skip to content

feat(investigations): Apply update_detector requests as the user #244034

feat(investigations): Apply update_detector requests as the user

feat(investigations): Apply update_detector requests as the user #244034

# Adds labels to pull requests for the type of change the PR makes

Check warning on line 1 in .github/workflows/label-pullrequest.yml

View workflow run for this annotation

GitHub Actions / meta(labels)

Workflow execution policy warning (evaluate mode)

On December 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
name: meta(labels)
on:
pull_request_target:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
label-pullrequest:
permissions:
contents: read
pull-requests: write
name: labels pull requests (frontend / backend)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false
- name: Check for file changes
uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2
id: changes
with:
token: ${{ github.token }}
filters: .github/file-filters.yml
- name: Reconcile frontend/backend labels and warning
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
env:
PATH_FILTER_OUTPUTS: ${{ toJSON(steps.changes.outputs) }}
with:
script: |
const {reconcilePrScope} = await import(`${process.env.GITHUB_WORKSPACE}/.github/workflows/scripts/reconcile-pr-scope.js`);
await reconcilePrScope({
github,
context,
core,
pathFilterOutputs: JSON.parse(process.env.PATH_FILTER_OUTPUTS),
});