Skip to content

Commit 8500dcf

Browse files
authored
Merge pull request #383 from Cysharp/feature/pin_action
ci: Pinning third party GitHub Actions sha
2 parents a71654f + 0361605 commit 8500dcf

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.github/dependabot.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ref: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly" # Check for updates to GitHub Actions every week
8+
ignore:
9+
# I just want update action when major/minor version is updated. patch updates are too noisy.
10+
- dependency-name: '*'
11+
update-types:
12+
- version-update:semver-patch

.github/workflows/build-debug.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
timeout-minutes: 10
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
1919
- run: dotnet build -c Debug
2020
- run: dotnet test -c Debug --no-build
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- name: Load secrets
3232
id: op-load-secret
33-
uses: 1password/load-secrets-action@v2
33+
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0
3434
with:
3535
export-env: false
3636
env:
@@ -39,7 +39,7 @@ jobs:
3939
UNITY_PASSWORD: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/credential"
4040
UNITY_SERIAL: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/serial"
4141

42-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4343

4444
# Run SourceGenerater to generate serialization code
4545
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main

.github/workflows/build-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
timeout-minutes: 10
2929
steps:
3030
- run: echo ${{ needs.update-packagejson.outputs.sha }}
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3232
with:
3333
ref: ${{ needs.update-packagejson.outputs.sha }}
3434
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
@@ -52,7 +52,7 @@ jobs:
5252
steps:
5353
- name: Load secrets
5454
id: op-load-secret
55-
uses: 1password/load-secrets-action@v2
55+
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2.0.0
5656
with:
5757
export-env: false
5858
env:
@@ -62,7 +62,7 @@ jobs:
6262
UNITY_SERIAL: "op://${{ vars.OP_VAULT_ACTIONS_PUBLIC }}/UNITY_LICENSE/serial"
6363

6464
- run: echo ${{ needs.update-packagejson.outputs.sha }}
65-
- uses: actions/checkout@v4
65+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6666
with:
6767
ref: ${{ needs.update-packagejson.outputs.sha }}
6868

@@ -88,7 +88,7 @@ jobs:
8888
customParameters: "/headless /ScriptBackend IL2CPP"
8989

9090
# check meta files
91-
- uses: Cysharp/Actions/.github/actions/check-metas@main
91+
- uses: Cysharp/Actions/.github/actions/check-metas@main # check meta files
9292
with:
9393
directory: src/MemoryPack.Unity
9494

0 commit comments

Comments
 (0)