Potential fix for code scanning alert no. 29: Workflow does not contain permissions (#12326)

If a GitHub Actions job or workflow has no explicit permissions set, then the repository permissions are used. Repositories created under an organization inherit the organization's permissions. Organizations or repositories created before February 2023 have default permissions set to read-write. Often, these permissions do not adhere to the principle of least privilege and can be reduced to read-only, leaving write permission only for specific types, such as issues (write) or pull requests (write).

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
WC3D
2025-07-16 20:54:53 -04:00
committed by GitHub
parent 475bef63d7
commit 4d960c3c8c

View File

@@ -2084,6 +2084,8 @@ jobs:
if: False
name: build-rustdesk-web
runs-on: ubuntu-22.04
permissions:
contents: read
strategy:
fail-fast: false
env: