Skip to content

Commit b13c591

Browse files
authored
Merge pull request #60 from step-security-bot/stepsecurity_remediation_1729181093
[StepSecurity] ci: Harden GitHub Actions
2 parents 7b67baa + 97f1634 commit b13c591

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
attestations: write # for provenances
2626
timeout-minutes: 20
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2929
with:
3030
# https://github.com/reproducible-containers/repro-get/issues/3
3131
fetch-depth: 0
@@ -66,7 +66,7 @@ jobs:
6666
gh attestation verify socket_vmnet-${version}-x86_64.tar.gz --owner lima-vm
6767
\`\`\`
6868
EOF
69-
- uses: actions/attest-build-provenance@v1
69+
- uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
7070
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
7171
with:
7272
subject-path: _artifacts/*

.github/workflows/test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- 'release/**'
88
pull_request:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
integration:
1215
name: Integration tests
@@ -19,7 +22,7 @@ jobs:
1922
runs-on: ${{ matrix.platform }}
2023
timeout-minutes: 40
2124
steps:
22-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
2326
with:
2427
fetch-depth: 1
2528
- name: Show host info
@@ -44,7 +47,7 @@ jobs:
4447
- name: Print launchd status (shared mode)
4548
run: launchctl print system/io.github.lima-vm.socket_vmnet
4649
- name: Fetch homebrew-core commit messages
47-
uses: actions/checkout@v4
50+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
4851
with:
4952
# needed by ./hack/brew-install-version.sh
5053
repository: homebrew/homebrew-core
@@ -60,7 +63,7 @@ jobs:
6063
- name: Test (shared mode)
6164
run: ./test/test.sh /var/run/socket_vmnet
6265
# Bridged mode cannot be tested on GHA
63-
- uses: actions/setup-go@v5
66+
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
6467
with:
6568
go-version: 1.23.x
6669
- name: Install Lima

0 commit comments

Comments
 (0)