Skip to content

Workflow does not contain permissions #61

@elopezanaya

Description

@elopezanaya

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions