Skip to content

Commit

Permalink
github: Pin external GitHub Actions to hashes (#107)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
radeksimko committed Dec 21, 2022
1 parent 540aee2 commit 31275ae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
labels: ["dependencies"]

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels: ["dependencies"]
8 changes: 4 additions & 4 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:

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

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

- name: Create test directory
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
run: go mod download

- name: Cache / restore go modules
uses: actions/cache@v3
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # https://github.com/actions/cache/releases/tag/v3.0.11
with:
path: |
~/go/pkg/mod
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
# Save coverage report parts
- name: Upload and save artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # https://github.com/actions/upload-artifact/releases/tag/v3.1.1
with:
name: Test Results
path: ${{ env.TEST_RESULTS }}

0 comments on commit 31275ae

Please sign in to comment.