Skip to content

Conversation

@Alkarex
Copy link
Member

@Alkarex Alkarex commented May 20, 2025

Potential fix for https://github.com/alexandrainst/node-red-contrib-postgresql/security/code-scanning/3

To fix the issue, we need to add a permissions block to the workflow. Since the publish-npm job requires write access to the contents for publishing the package, we will explicitly set contents: write for this job. For the build job, which only runs tests, we will set contents: read to minimize permissions.

The permissions block will be added at the job level for both build and publish-npm to ensure each job has the least privileges required.


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>
@Alkarex Alkarex marked this pull request as ready for review May 20, 2025 07:51
@Alkarex Alkarex merged commit fba5db7 into main May 20, 2025
5 checks passed
@Alkarex Alkarex deleted the alert-autofix-3 branch May 20, 2025 07:52
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