Question 6
A public repository receives a pull request from a fork. The test workflow does not need deployment credentials. A separate workflow deploys trusted code from the main branch. Which design is safest?
Run untrusted fork code with deployment secrets because workflow masking prevents credential exposure in logs.
Give the test workflow repository write access so it can automatically repair the contribution before review.
Merge the fork first, then run privileged checks after its code enters the trusted main branch.
Test the fork read-only without secrets; deploy trusted main through a separately protected workflow.