#70526·freeCodeCamp

PR path-labeler can remove labels added by concurrent workflows

Author: majestic-owl448Created Sep 30, 2026Updated Sep 30, 2026
Labelsstatus: waiting triagescope: tools/scripts

Describe the Issue

  1. Two workflows can update a pull request's labels at the same time:

    GitHub - PR Contribution Guidelines adds deprioritized when a contribution-guideline check fails.

    GitHub - Label PRs independently calculates path-based labels with sync-labels: true.

    The path-labeler action reads the existing labels and later replaces the complete label set. A label added by another workflow between those operations can be omitted from the replacement set.

  2. This occurred on pull request #70509. The contribution-guidelines workflow added deprioritized after detecting a commit made through the GitHub web editor. One second later, the concurrently running path-labeler workflow removed deprioritized while adding scope: curriculum. The failed guideline condition remained unresolved when the label disappeared.

Affected Pages

Expected behavior

Labels added by contribution-guideline checks should remain on a pull request until the corresponding condition is resolved. Path-based label updates should not remove labels added concurrently by another workflow.

Source: freeCodeCamp/freeCodeCamp