Skip to content

Commit 3076e57

Browse files
committed
GitHub Actions: Set read-only permissions for workflow
Added `contents: read` to the permissions block in `main.yml`. This change ensures the workflow adheres to the principle of least privilege by limiting its access scope.
1 parent 2996a38 commit 3076e57

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml renamed to .github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1717
cancel-in-progress: true
1818

19+
permissions:
20+
contents: read
21+
1922
env:
2023
IMAGE: saschpe/android-ndk
2124
PLATFORMS: linux/amd64,linux/arm64
@@ -32,7 +35,7 @@ jobs:
3235
cmake: [ 3.31.1 ]
3336
steps:
3437
- name: Checkout
35-
uses: actions/checkout@v4
38+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3639
- name: Docker meta
3740
id: meta
3841
uses: docker/metadata-action@v5

0 commit comments

Comments
 (0)