Skip to content

Conversation

@jperals
Copy link
Member

@jperals jperals commented Nov 20, 2025

Potential fix for code scanning alert 4.

To resolve the issue, add a permissions key to explicitly define the minimal required permissions. Since the workflow contains two jobs (test and update), add the permissions block at the root level of the workflow to apply to all jobs if their requirements are similar. Use contents: read as a starting point, and include any additional permissions required by specific steps. For example, the test job requires actions: read for downloading artifacts and actions: write for uploading results.


Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@jperals jperals changed the title Potential fix for code scanning alert no. 4: Workflow does not contain permissions chore: Add explicit permissions to visual regressions workflow Nov 20, 2025
@jperals jperals marked this pull request as ready for review November 20, 2025 13:36
@jperals jperals requested a review from pan-kot as a code owner November 20, 2025 13:36
@jperals jperals added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit 765ecf2 Dec 4, 2025
44 of 46 checks passed
@jperals jperals deleted the alert-autofix-4 branch December 4, 2025 08:57
jsilll pushed a commit to jsilll/chart-components that referenced this pull request Dec 5, 2025
…n permissions (cloudscape-design#126)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
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