Commit c169137
Potential fix for code scanning alert no. 2: Workflow does not contain permissions (#59)
Potential fix for
[https://github.com/richardsondev/AggregateConfigBuildTask/security/code-scanning/2](https://github.com/richardsondev/AggregateConfigBuildTask/security/code-scanning/2)
To fix the issue, we will add a `permissions` block to the workflow.
This block will specify the minimal permissions required for the
workflow to function correctly. Based on the actions used in the
workflow, the following permissions are needed:
1. `contents: read` - Required for actions like `actions/checkout` to
access the repository's contents.
2. `packages: read` - Required for downloading the NuGet package
artifact.
3. `actions: read` - Required for downloading and uploading artifacts.
We will add the `permissions` block at the workflow level to apply these
permissions to all jobs. This ensures consistency and avoids redundancy.
---
_Suggested fixes powered by Copilot Autofix. Review carefully before
merging._
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>1 parent 55d96c3 commit c169137
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
| |||
0 commit comments