fix: correct visual tests workflow - #8854
Conversation
|
/visual-tests |
1 similar comment
|
/visual-tests |
|
Claude finished @pravusjif's task in 2m 5s —— View job Security Review — Workflow ChangeScope of change: A single permission elevation in permissions:
- contents: read
+ contents: write
pull-requests: write
FindingsMEDIUM — W.10: Permissions broader than the dispatcher itself exercisesThis dispatcher workflow performs only read-side operations on its own:
Nothing in the dispatcher itself needs uses: decentraland/explorer-automation/.github/workflows/run-visual-suite.yml@mainThat's a legitimate pattern (e.g. the suite may commit baseline updates), but the PR doesn't say so. Recommend adding a one-line comment in the If HIGH (pre-existing, not introduced here, but amplified by this PR) — W.7a: Secret-holding reusable workflow pinned to a mutable ref
uses: decentraland/explorer-automation/.github/workflows/run-visual-suite.yml@maincombined with This PR makes that exposure strictly larger: with Recommend (separately from this PR) pinning to a 40-char commit SHA and using Dependabot or a manual bump cadence for updates. This is the same standard you'd apply to any third-party action; an internal-org workflow is lower risk but the same class of risk. MEDIUM (pre-existing) — Author-association gate without TOCTOU protection
Neither of these is introduced by this PR. LOW — observations
Recommendations for this PR
Recommendations for follow-up (out of scope for this PR)
The permission elevation is plausibly correct as a fix, but it's undocumented and it amplifies an existing mutable-ref + |
Visual test workflow runs fail due to a wrong configuration: https://github.com/decentraland/unity-explorer/actions/runs/26288958503
This PR corrects that, without this change, the explorer-autmation workflow can't post the github PR comments in this repo, due to Github rules this change cannot work in a PR unless it's already been merged.