Conversation
Adding support for non-standard disk blocks
Creating a disk with a non-standard block size
The `ubuntu-20.04` label has been deprecated and is no longer supported. Proof - https://docs.github.com/en/actions/reference/runners/github-hosted-runners#standard-github-hosted-runners-for-public-repositories
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 4 months ago
The best way to fix this problem is by explicitly specifying a permissions block restricting the GITHUB_TOKEN to the least privilege required. In this workflow, the steps only need to check repository contents; write access is unnecessary. Thus, the minimal required permissions are contents: read. This can be set at the workflow root (applies to all jobs) or inside the specific job config if more granularity is required. As there is only one job, adding the following at the workflow root after the name: line is optimal (as per convention and examples):
permissions:
contents: readMake this addition immediately after the name: Run tests line (line 15), before the on: block.
No imports, methods, or further changes are required.
| @@ -13,6 +13,8 @@ | ||
| # limitations under the License. | ||
|
|
||
| name: Run tests | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: {} |
What this PR does?
Adds support for creating disks with a non-standard block size
How was it tested?
Manually assembling and replacing the image link in containers. Next, create disks with standard and non-standard block sizes.