Skip to content

ci: drop pull_request trigger from semantic PR lint - #32

Closed
lucataglia wants to merge 1 commit into
mainfrom
ci/semantic-pr-drop-pull-request
Closed

lucataglia wants to merge 1 commit into
mainfrom
ci/semantic-pr-drop-pull-request

Conversation

@lucataglia

Copy link
Copy Markdown
Collaborator

Problem

On every Dependabot PR the "Lint PR" check fails with Parameter token or opts.auth is required (e.g. run 45624274693).

The workflow runs on both pull_request and pull_request_target. GitHub does not pass Actions secrets to pull_request runs triggered by Dependabot, so GIT_HUB_PAT reaches the shared workflow empty. Since dependabot.yml was added (#25), the pull_request runs on Dependabot PRs have failed every time, while the pull_request_target runs on the same PRs pass.

Fix

Drop the pull_request trigger and keep only pull_request_target, the same fix as radicalbit/radicalbit-design-system#168.

  • PR titles are still validated by the pull_request_target run, which gets the secrets on every PR.
  • Safe: the action reads the title through the API and never checks out PR code.
  • The check name stays lint / Validate PR title, so branch protection is unchanged.
  • One side effect: a PR that edits semantic-pr.yaml runs the main version of it until merged.

@bigmoby

bigmoby commented Nov 25, 2026

Copy link
Copy Markdown
Member

Ciao @lucataglia , intanto grazie per averci guardato! 🙏
Alla fine la causa era un’altra...in pratica l'action partiva da un processo di dependabot e quindi era per questo che non trovava la il secret associato a GIT_HUB_PAT proprio perché i processi di dependabot hanno bisogno di un secret dedicato a loro. Ho risolto quindi creando un secret con valore esattamente a quello che si sarebbe aspettato...ed ora va! 🌈

@bigmoby bigmoby closed this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants