Skip to content

Conversation

@TRC-Loop
Copy link
Owner

@TRC-Loop TRC-Loop commented Nov 1, 2025

Potential fix for https://github.com/TRC-Loop/CronDNS/security/code-scanning/4

To fix the problem, add a permissions key to the workflow. This can be placed at the root (preferred for most simple workflows) so it applies to all jobs, unless jobs require differing levels of permission. For this workflow, only reading contents is required, as all the steps interact with external services or build locally. The permissions block should be inserted near the top level, preferably right after the workflow name field and before on.

Steps:

  • In the .github/workflows/docker-release.yml file, add the following block:
    permissions:
      contents: read
  • Place this immediately after the name: Build Docker on Release line, before on:.

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

…n permissions

Workflow - Content Read

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@TRC-Loop TRC-Loop self-assigned this Nov 1, 2025
@TRC-Loop TRC-Loop marked this pull request as ready for review November 1, 2025 13:57
@TRC-Loop TRC-Loop merged commit c57efff into main Nov 1, 2025
3 checks passed
@TRC-Loop TRC-Loop deleted the alert-autofix-4 branch November 1, 2025 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants