Skip to content

Commit a045cb4

Browse files
authored
Merge pull request #14 from coveooss/chore/GHA-050814-stepsecurity-remediation
chore(ci): apply security best practices
2 parents 42a45fe + b5a4b73 commit a045cb4

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/go.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Go
22

33
on: push
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69

710
build:
@@ -14,10 +17,15 @@ jobs:
1417
- "1.17"
1518
- "1.18"
1619
steps:
17-
- uses: actions/checkout@v3
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2.11.1
22+
with:
23+
egress-policy: audit
24+
25+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1826

1927
- name: Set up Go
20-
uses: actions/setup-go@v3
28+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
2129
with:
2230
go-version: ${{ matrix.go }}
2331

0 commit comments

Comments
 (0)