Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Bug: CI Label pull request job fails on all fork PRs since #14411

Aperta
#14,438 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions
Ambito
ci-cd

Direzione di ricerca

Inizia leggendo label-pr.yml, in particolare il trigger pull_request_target e la dichiarazione dell’ambiente github-app-auth; confrontali con l’uso dello stesso ambiente in label-issues.yml e devflow-pr-review.yml. Riproduci il controllo Label pull request / add_label su una PR proveniente da un fork e verifica che venga completato e applichi le etichette di area previste senza l’errore di protezione dell’ambiente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug python triage

Describe the bug

The Label pull request / add_label job fails on every pull request opened from a fork. The run is rejected at the environment gate before any step executes, with:

Branch "main" is not allowed to deploy to github-app-auth due to environment
protection rules. The deployment was rejected or didn't satisfy other protection rules.

The job fails in 1-2 seconds.

label-pr.yml runs on pull_request_target and declares environment: github-app-auth. On that trigger the workflow is evaluated in the context of the base branch (main), which appears not to satisfy the environment's protection rules. label-issues.yml and devflow-pr-review.yml declare the same environment.

Timing points to #14411 ("Replace workflow PAT usage with GitHub App authentication", merged Sep 11) as the origin — #14150 is a months-old PR whose add_label runs previously passed and now fail, with no change to its diff.

To Reproduce

  1. Open a pull request from a fork against main.
  2. Open the Checks tab and select Label pull request / add_label.
  3. See the run fail in 1-2 seconds with the environment protection rule error above.

Affected (fork PRs): #14437, #14434, #14150.
Not affected (in-repo branch): #14393 (Dependabot) — no deployment failure, and the dependencies and python labels were applied normally.

Expected behavior

add_label runs to completion on fork PRs and applies the appropriate area labels, it did before #14411.

Screenshots
N/A

Platform

  • Language: N/A (GitHub Actions workflow, not SDK code)
  • Source: main branch of repository, at ca40aa722
  • AI model: N/A
  • IDE: N/A
  • OS: N/A (ubuntu-latest runner)

Additional context

Side effect: incoming community PRs are not being auto-labeled, which may be affecting triage and none of the three affected PRs above carry area labels.

Lingua principale
C#
Stelle
28.6k
Fork
4.8k
Merge medio
1g 3h
PR unite (30g)
16

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/semantic-kernel

Tutte le issue di microsoft/semantic-kernel

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.