Skip to content

Commit 350f513

Browse files
security: pin GitHub Actions with ratchet
1 parent 013252b commit 350f513

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/build_artifact.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
build:
14-
runs-on: [ ubuntu-latest ]
14+
runs-on: [ubuntu-latest]
1515

1616
concurrency:
1717
# Cancel intermediate builds
@@ -22,26 +22,26 @@ jobs:
2222

2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
2626

2727
- name: Go
2828
uses: ./.github/workflows/composite/go
2929

3030
- name: Build
3131
run: make clean lint prepare build pack
32-
32+
3333
- name: Environment
3434
run: |
3535
echo "GOARCH=$(go env GOARCH)" >> $GITHUB_ENV
3636
echo "GOOS=$(go env GOOS)" >> $GITHUB_ENV
3737
echo "BRANCH=$(echo ${{ github.ref_name }} | tr -C '[a-z0-9-\n]' '_')" >> $GITHUB_ENV
3838
3939
- name: Upload Artifact
40-
uses: actions/upload-artifact@v4
40+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # ratchet:actions/upload-artifact@v4
4141
with:
4242
name: k6-${{env.GOARCH}}-${{env.GOOS}}-${{ env.BRANCH }}.tar.gz
4343
path: ./bin/*.tar.gz
4444
if-no-files-found: warn
4545
overwrite: true
46-
retention-days: 3 # we need it just for releases
46+
retention-days: 3 # we need it just for releases
4747
compression-level: 0 # this is already a gzipped archive

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515

1616
jobs:
1717
verify:
18-
runs-on: [ ubuntu-latest ]
18+
runs-on: [ubuntu-latest]
1919

2020
concurrency:
2121
# Cancel intermediate builds
@@ -26,7 +26,7 @@ jobs:
2626

2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # ratchet:actions/checkout@v4
3030

3131
- name: Go
3232
uses: ./.github/workflows/composite/go

.github/workflows/composite/go/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ runs:
44
using: composite
55
steps:
66
- name: Setup Go
7-
uses: actions/setup-go@v5
7+
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # ratchet:actions/setup-go@v5
88
with:
99
go-version: '1.22'
1010

1111
- name: golangci-lint
12-
uses: golangci/golangci-lint-action@v6
12+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # ratchet:golangci/golangci-lint-action@v6
1313
with:
1414
version: v1.58.2
1515
args: --verbose --concurrency=2 --timeout=600s

0 commit comments

Comments
 (0)