Page MenuHomeVyOS Platform

vyos-1x CI: package-smoketest interpolates PR branch names into run scripts
Open, NormalPublic

Description

.github/workflows/package-smoketest.yml expands github.event.pull_request.head.ref, base.ref and github.ref_name directly inside run: scripts. The head ref of a fork PR is attacker-chosen and may contain shell metacharacters. Fork PRs run without secrets, so the impact is low, but it is the script-injection pattern GitHub warns about.

Fix: pass these values through the step env: and use quoted shell variables.

Details

Version
rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)