Skip to content

Commit 5018dc7

Browse files
authored
Pin gh actions (#1472)
* Pin gh actions * min release age
1 parent a9e1164 commit 5018dc7

6 files changed

Lines changed: 24 additions & 19 deletions

File tree

.github/workflows/buildtest.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
test:
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
29-
- uses: actions/cache@v5
28+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
29+
- uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
3030
with:
3131
path: |
3232
~/go/pkg/mod
@@ -35,9 +35,9 @@ jobs:
3535
key: livekit-protocol
3636

3737
- name: Set up Go
38-
uses: actions/setup-go@v6
38+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
3939
with:
40-
go-version-file: 'go.mod'
40+
go-version-file: "go.mod"
4141

4242
- name: Set up gotestfmt
4343
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.4.1
@@ -46,7 +46,7 @@ jobs:
4646
run: go mod download
4747

4848
- name: Static Check
49-
uses: amarpal/staticcheck-action@master
49+
uses: amarpal/staticcheck-action@ab84170fc40f72c7045b5d669e149e06c2b96439
5050
with:
5151
checks: '["all", "-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022", "-SA1019"]'
5252
install-go: false

.github/workflows/generate.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ jobs:
2323
generate:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
26+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2727

2828
- name: Install Protoc
29-
uses: arduino/setup-protoc@v2
29+
uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6 # v2.1.0
3030
with:
3131
repo-token: ${{ secrets.GITHUB_TOKEN }}
3232

3333
- name: Set up Go
34-
uses: actions/setup-go@v6
34+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
3535
with:
3636
go-version: ">=1.20"
3737

3838
- name: Go mod tidy
3939
run: go mod tidy
4040

4141
- name: Install generators
42-
uses: magefile/mage-action@v3
42+
uses: magefile/mage-action@6f50bbb8ea47d56e62dee92392788acbc8192d0b # v3.1.0
4343
with:
4444
version: latest
4545
install-only: true
@@ -50,10 +50,10 @@ jobs:
5050
- name: Generate Protobuf
5151
run: mage proto
5252

53-
- uses: pnpm/action-setup@v4
53+
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
5454

5555
- name: Use Node.js 20
56-
uses: actions/setup-node@v6
56+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
5757
with:
5858
node-version: 24
5959
cache: "pnpm"
@@ -66,7 +66,7 @@ jobs:
6666
pnpm --filter @livekit/protocol run generate:proto
6767
6868
- name: Add changes
69-
uses: EndBug/add-and-commit@v9
69+
uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
7070
with:
7171
add: '["livekit", "replay", "rpc", "infra", "packages/javascript/src/gen"]'
7272
default_author: github_actions

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ jobs:
1717
name: Release
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

2222
- name: Install Protoc
23-
uses: arduino/setup-protoc@v2
23+
uses: arduino/setup-protoc@a8b67ba40b37d35169e222f3bb352603327985b6 # v2.1.0
2424
with:
2525
repo-token: ${{ secrets.GITHUB_TOKEN }}
2626

27-
- uses: pnpm/action-setup@v4
27+
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
2828

2929
- name: Use Node.js 20
30-
uses: actions/setup-node@v6
30+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3131
with:
3232
node-version: 24
3333
cache: "pnpm"
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Create Release Pull Request or Publish packages
3939
id: changesets
40-
uses: changesets/action@v1
40+
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
4141
with:
4242
# This expects you to have a script called ci:publish which does a build for your packages and calls changeset publish
4343
publish: pnpm ci:publish
@@ -46,7 +46,7 @@ jobs:
4646

4747
- name: Create git tag for golang package
4848
if: steps.changesets.outputs.published == 'true'
49-
uses: rickstaa/action-create-tag@v1
49+
uses: rickstaa/action-create-tag@a1c7777fcb2fee4f19b0f283ba888afa11678b72 # v1.7.2
5050
id: tag_create
5151
with:
5252
tag: ${{format('v{0}', fromJson(steps.changesets.outputs.publishedPackages)[0].version)}}

.github/workflows/slack-notifier.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
notify-devs:
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: livekit/slack-notifier-action@main
22+
- uses: livekit/slack-notifier-action@34d9e973391fe5e4afacba015c4d144eb912e7ea
2323
with:
2424
config_json: ${{ secrets.SLACK_NOTIFY_CONFIG_JSON }}
2525
slack_token: ${{ secrets.SLACK_PR_NOTIFIER_TOKEN }}

pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
packages:
22
- "packages/javascript"
33
- "."
4+
5+
minimumReleaseAge: 2880
6+
minimumReleaseAgeExclude:
7+
- "@livekit/*"

renovate.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"constraints": {
55
"go": "1.22"
66
},
7+
"minimumReleaseAge": "2 days",
78
"commitBody": "Generated by renovateBot",
89
"packageRules": [
910
{

0 commit comments

Comments
 (0)