Pick the fix
Your CI uses uses: some/action@v2. The maintainer's account is compromised. What would have protected you?
Hint 1 of 1
Can a tag be moved?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Pinning the action to a full commit SHA and reviewing updates
Correct. A moved tag can't change a pinned commit.
A tag like v2 is a movable pointer, so whoever controls the repo can point it at new code. A full commit SHA names exact content, so a compromised maintainer can't change what you run.
Why not the others?
- B Using @main instead. Even more exposed.
- C More CI runners. Unrelated.
- D Running tests twice. The malicious step still runs.