-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Problem
Security scan complains about workfflow github missing permissions
issue 1 : https://github.com/microsoft/omnichannel-amsclient/security/code-scanning/6
component : .github/workflows/release.yml:23
issue 2 : https://github.com/microsoft/omnichannel-amsclient/security/code-scanning/5
component : .github/workflows/release.yml:77
issue 3 : https://github.com/microsoft/omnichannel-amsclient/security/code-scanning/3
component : .github/workflows/pull-request.yml:10
Error
If a GitHub Actions job or workflow has no explicit permissions set, then the repository permissions are used. Repositories created under organizations inherit the organization permissions. The organizations or repositories created before February 2023 have the 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 the write permission only to a specific types as issues: write or pull-requests: write.
Expected
Add changes that meet the criteria, without messing wiith functionality, release.yaml should be able to publish