Skip to content

Commit ff9fe79

Browse files
committed
Change build-and-test action to use commit instead of version
CodeQL reccomends using a pinned commit rather than a version for 3rd party actions: ``` Using a tag for a 3rd party Action that is not pinned to a commit can lead to executing an untrusted Action through a supply chain attack. ``` Signed-off-by: Winford <[email protected]>
1 parent 2daea6d commit ff9fe79

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-and-test.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on: [push, pull_request]
1111
jobs:
1212
build-and-test:
1313
runs-on: "ubuntu-24.04"
14+
permissions:
15+
contents: read
16+
pull-requests: read
1417
strategy:
1518
matrix:
1619
otp: ["25", "26", "27"]
@@ -22,7 +25,7 @@ jobs:
2225
with:
2326
submodules: 'recursive'
2427

25-
- uses: erlef/setup-beam@v1
28+
- uses: erlef/setup-beam@5304e04ea2b355f03681464e683d92e3b2f18451
2629
with:
2730
otp-version: ${{ matrix.otp }}
2831

0 commit comments

Comments
 (0)