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/2

To fix the issue, we will add a permissions block at the root level of the workflow to define the minimal permissions required for the tasks. Based on the workflow's operations, the following permissions are needed:

  • contents: read for reading repository contents during the build and publish steps.
  • packages: write for publishing the package to npm.

This ensures that the workflow has only the permissions it needs and no more.


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:47
@Alkarex Alkarex merged commit c04ad12 into main May 20, 2025
5 checks passed
@Alkarex Alkarex deleted the alert-autofix-2 branch May 20, 2025 07:47
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