Skip to content

Commit 31275ae

Browse files
authored
github: Pin external GitHub Actions to hashes (#107)
* github: Pin actions/checkout to 755da8c3cf115ac066823e79a1e1788f8940201b * github: Pin actions/setup-go to 6edd4406fa81c3da01a34fa6f6343087c207a568 * github: Pin actions/cache to 9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 * github: Pin actions/upload-artifact to 83fd05a356d7e2593de66fc9913b3002723633cb * github: Enable dependabot
1 parent 540aee2 commit 31275ae

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "gomod"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
labels: ["dependencies"]
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"
13+
labels: ["dependencies"]

.github/workflows/go-tests.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515

1616
steps:
1717
- name: Setup go
18-
uses: actions/setup-go@v3
18+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # https://github.com/actions/setup-go/releases/tag/v3.5.0
1919
with:
2020
go-version: ${{ matrix.go-version }}
2121

2222
- name: Checkout code
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # https://github.com/actions/checkout/releases/tag/v3.2.0
2424

2525
- name: Create test directory
2626
run: |
@@ -30,7 +30,7 @@ jobs:
3030
run: go mod download
3131

3232
- name: Cache / restore go modules
33-
uses: actions/cache@v3
33+
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # https://github.com/actions/cache/releases/tag/v3.0.11
3434
with:
3535
path: |
3636
~/go/pkg/mod
@@ -68,7 +68,7 @@ jobs:
6868
6969
# Save coverage report parts
7070
- name: Upload and save artifacts
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # https://github.com/actions/upload-artifact/releases/tag/v3.1.1
7272
with:
7373
name: Test Results
7474
path: ${{ env.TEST_RESULTS }}

0 commit comments

Comments
 (0)