CI: SHA hash pin dependencies in Actions (#5358) * Add Renovate configuration file * Delete .github/workflows/update-i18n.yaml * chore(deps): pin dependencies (#1) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update codelytv/pr-size-labeler action to v1.10.3 (#2) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * Delete renovate.json --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

b3f1114a68a3a7d9c9509f4718fd525f28058b71

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
11 files changed, +60 -92Ignore whitespace
.github/workflows/docker-publish.yml+7 -7
@@ -35,13 +35,13 @@ jobs:
35 # It's currently not possible to have `branches` under the `schedule` trigger35 # It's currently not possible to have `branches` under the `schedule` trigger
36 - name: Checkout the release branch (on release)36 - name: Checkout the release branch (on release)
37 if: ${{ github.event_name == 'release' || github.event_name == 'push' }}37 if: ${{ github.event_name == 'release' || github.event_name == 'push' }}
38 uses: actions/checkout@v4.1.238 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
39 with:39 with:
40 ref: "release"40 ref: "release"
4141
42 - name: Checkout the staging branch42 - name: Checkout the staging branch
43 if: ${{ github.event_name == 'schedule' }}43 if: ${{ github.event_name == 'schedule' }}
44 uses: actions/checkout@v4.1.244 uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
45 with:45 with:
46 ref: "staging"46 ref: "staging"
4747
@@ -55,13 +55,13 @@ jobs:
5555
56 # Setting up QEMU for multi-arch image build56 # Setting up QEMU for multi-arch image build
57 - name: Set up QEMU57 - name: Set up QEMU
58 uses: docker/setup-qemu-action@v358 uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
5959
60 - name: Set up Docker Buildx60 - name: Set up Docker Buildx
61 uses: docker/setup-buildx-action@v361 uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
6262
63 - name: Extract metadata (tags, labels) for the image63 - name: Extract metadata (tags, labels) for the image
64 uses: docker/metadata-action@v5.5.164 uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1
65 id: metadata65 id: metadata
66 with:66 with:
67 images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}67 images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@@ -74,7 +74,7 @@ jobs:
7474
75 # Login into package repository as the person who created the release75 # Login into package repository as the person who created the release
76 - name: Log in to the Container registry76 - name: Log in to the Container registry
77 uses: docker/login-action@v377 uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
78 with:78 with:
79 registry: ${{ env.REGISTRY }}79 registry: ${{ env.REGISTRY }}
80 username: ${{ github.actor }}80 username: ${{ github.actor }}
@@ -84,7 +84,7 @@ jobs:
84 # Tag it with branch name84 # Tag it with branch name
85 # Assumes branch name is the version number85 # Assumes branch name is the version number
86 - name: Build and push86 - name: Build and push
87 uses: docker/build-push-action@v5.3.087 uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
88 with:88 with:
89 context: .89 context: .
90 platforms: linux/amd64,linux/arm6490 platforms: linux/amd64,linux/arm64
.github/workflows/issues-auto-manager.yml+13 -13
@@ -22,7 +22,7 @@ jobs:
22 id: app22 id: app
23 # Create a GitHub App token23 # Create a GitHub App token
24 # https://github.com/marketplace/actions/create-github-app-token24 # https://github.com/marketplace/actions/create-github-app-token
25 uses: actions/create-github-app-token@v225 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
26 with:26 with:
27 app-id: ${{ vars.ST_BOT_APP_ID }}27 app-id: ${{ vars.ST_BOT_APP_ID }}
28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
31 - name: Checkout Repository31 - name: Checkout Repository
32 # Checkout32 # Checkout
33 # https://github.com/marketplace/actions/checkout33 # https://github.com/marketplace/actions/checkout
34 uses: actions/checkout@v4.2.234 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
36 - name: Auto-Label Issues (Based on Issue Content)36 - name: Auto-Label Issues (Based on Issue Content)
37 # only auto label based on issue content once, on open (to prevent re-labeling removed labels)37 # only auto label based on issue content once, on open (to prevent re-labeling removed labels)
@@ -39,7 +39,7 @@ jobs:
3939
40 # Issue Labeler40 # Issue Labeler
41 # https://github.com/marketplace/actions/regex-issue-labeler41 # https://github.com/marketplace/actions/regex-issue-labeler
42 uses: github/issue-labeler@v3.442 uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
43 with:43 with:
44 configuration-path: .github/issues-auto-labels.yml44 configuration-path: .github/issues-auto-labels.yml
45 enable-versioned-regex: 045 enable-versioned-regex: 0
@@ -56,7 +56,7 @@ jobs:
56 id: app56 id: app
57 # Create a GitHub App token57 # Create a GitHub App token
58 # https://github.com/marketplace/actions/create-github-app-token58 # https://github.com/marketplace/actions/create-github-app-token
59 uses: actions/create-github-app-token@v259 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
60 with:60 with:
61 app-id: ${{ vars.ST_BOT_APP_ID }}61 app-id: ${{ vars.ST_BOT_APP_ID }}
62 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}62 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -66,7 +66,7 @@ jobs:
66 if: contains(fromJSON('["πŸ‘©β€πŸ’» Good First Issue", "πŸ™ Help Wanted", "πŸͺ² Confirmed", "⚠️ High Priority", "❕ Medium Priority", "πŸ’€ Low Priority"]'), github.event.label.name)66 if: contains(fromJSON('["πŸ‘©β€πŸ’» Good First Issue", "πŸ™ Help Wanted", "πŸͺ² Confirmed", "⚠️ High Priority", "❕ Medium Priority", "πŸ’€ Low Priority"]'), github.event.label.name)
67 # πŸ€– Issues Helper67 # πŸ€– Issues Helper
68 # https://github.com/marketplace/actions/issues-helper68 # https://github.com/marketplace/actions/issues-helper
69 uses: actions-cool/issues-helper@v3.6.069 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
70 with:70 with:
71 actions: 'add-labels'71 actions: 'add-labels'
72 token: ${{ steps.app.outputs.token }}72 token: ${{ steps.app.outputs.token }}
@@ -76,7 +76,7 @@ jobs:
76 if: contains(fromJSON('["βœ… Done", "βœ… Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)76 if: contains(fromJSON('["βœ… Done", "βœ… Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name)
77 # πŸ€– Issues Helper77 # πŸ€– Issues Helper
78 # https://github.com/marketplace/actions/issues-helper78 # https://github.com/marketplace/actions/issues-helper
79 uses: actions-cool/issues-helper@v3.6.079 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
80 with:80 with:
81 actions: 'remove-labels'81 actions: 'remove-labels'
82 token: ${{ steps.app.outputs.token }}82 token: ${{ steps.app.outputs.token }}
@@ -86,7 +86,7 @@ jobs:
86 if: contains(fromJSON('["❌ wontfix","πŸ‘ Approved","πŸ‘©β€πŸ’» Good First Issue"]'), github.event.label.name)86 if: contains(fromJSON('["❌ wontfix","πŸ‘ Approved","πŸ‘©β€πŸ’» Good First Issue"]'), github.event.label.name)
87 # πŸ€– Issues Helper87 # πŸ€– Issues Helper
88 # https://github.com/marketplace/actions/issues-helper88 # https://github.com/marketplace/actions/issues-helper
89 uses: actions-cool/issues-helper@v3.6.089 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
90 with:90 with:
91 actions: 'remove-labels'91 actions: 'remove-labels'
92 token: ${{ steps.app.outputs.token }}92 token: ${{ steps.app.outputs.token }}
@@ -96,7 +96,7 @@ jobs:
96 if: github.event.label.name == 'πŸͺ² Confirmed'96 if: github.event.label.name == 'πŸͺ² Confirmed'
97 # πŸ€– Issues Helper97 # πŸ€– Issues Helper
98 # https://github.com/marketplace/actions/issues-helper98 # https://github.com/marketplace/actions/issues-helper
99 uses: actions-cool/issues-helper@v3.6.099 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
100 with:100 with:
101 actions: 'remove-labels'101 actions: 'remove-labels'
102 token: ${{ steps.app.outputs.token }}102 token: ${{ steps.app.outputs.token }}
@@ -114,7 +114,7 @@ jobs:
114 id: app114 id: app
115 # Create a GitHub App token115 # Create a GitHub App token
116 # https://github.com/marketplace/actions/create-github-app-token116 # https://github.com/marketplace/actions/create-github-app-token
117 uses: actions/create-github-app-token@v2117 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
118 with:118 with:
119 app-id: ${{ vars.ST_BOT_APP_ID }}119 app-id: ${{ vars.ST_BOT_APP_ID }}
120 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}120 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -123,7 +123,7 @@ jobs:
123 - name: Remove Stale Label123 - name: Remove Stale Label
124 # πŸ€– Issues Helper124 # πŸ€– Issues Helper
125 # https://github.com/marketplace/actions/issues-helper125 # https://github.com/marketplace/actions/issues-helper
126 uses: actions-cool/issues-helper@v3.6.0126 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
127 with:127 with:
128 actions: 'remove-labels'128 actions: 'remove-labels'
129 token: ${{ steps.app.outputs.token }}129 token: ${{ steps.app.outputs.token }}
@@ -141,7 +141,7 @@ jobs:
141 id: app141 id: app
142 # Create a GitHub App token142 # Create a GitHub App token
143 # https://github.com/marketplace/actions/create-github-app-token143 # https://github.com/marketplace/actions/create-github-app-token
144 uses: actions/create-github-app-token@v2144 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
145 with:145 with:
146 app-id: ${{ vars.ST_BOT_APP_ID }}146 app-id: ${{ vars.ST_BOT_APP_ID }}
147 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}147 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -150,12 +150,12 @@ jobs:
150 - name: Checkout Repository150 - name: Checkout Repository
151 # Checkout151 # Checkout
152 # https://github.com/marketplace/actions/checkout152 # https://github.com/marketplace/actions/checkout
153 uses: actions/checkout@v4.2.2153 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
154154
155 - name: Post Issue Comments Based on Labels155 - name: Post Issue Comments Based on Labels
156 # Label Commenter156 # Label Commenter
157 # https://github.com/marketplace/actions/label-commenter157 # https://github.com/marketplace/actions/label-commenter
158 uses: peaceiris/actions-label-commenter@v1.10.0158 uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
159 with:159 with:
160 config_file: .github/issues-auto-comments.yml160 config_file: .github/issues-auto-comments.yml
161 github_token: ${{ steps.app.outputs.token }}161 github_token: ${{ steps.app.outputs.token }}
.github/workflows/issues-updates-on-merge.yml+2 -2
@@ -22,7 +22,7 @@ jobs:
22 id: app22 id: app
23 # Create a GitHub App token23 # Create a GitHub App token
24 # https://github.com/marketplace/actions/create-github-app-token24 # https://github.com/marketplace/actions/create-github-app-token
25 uses: actions/create-github-app-token@v225 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
26 with:26 with:
27 app-id: ${{ vars.ST_BOT_APP_ID }}27 app-id: ${{ vars.ST_BOT_APP_ID }}
28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
31 - name: Checkout Repository31 - name: Checkout Repository
32 # Checkout32 # Checkout
33 # https://github.com/marketplace/actions/checkout33 # https://github.com/marketplace/actions/checkout
34 uses: actions/checkout@v4.2.234 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
36 - name: Extract Linked Issues from Commit Message36 - name: Extract Linked Issues from Commit Message
37 id: extract_issues37 id: extract_issues
.github/workflows/job-close-stale.yml+6 -6
@@ -22,7 +22,7 @@ jobs:
22 id: app22 id: app
23 # Create a GitHub App token23 # Create a GitHub App token
24 # https://github.com/marketplace/actions/create-github-app-token24 # https://github.com/marketplace/actions/create-github-app-token
25 uses: actions/create-github-app-token@v225 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
26 with:26 with:
27 app-id: ${{ vars.ST_BOT_APP_ID }}27 app-id: ${{ vars.ST_BOT_APP_ID }}
28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
31 - name: Mark Issues/PRs without Activity31 - name: Mark Issues/PRs without Activity
32 # Close Stale Issues and PRs32 # Close Stale Issues and PRs
33 # https://github.com/marketplace/actions/close-stale-issues33 # https://github.com/marketplace/actions/close-stale-issues
34 uses: actions/stale@v9.1.034 uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
35 with:35 with:
36 repo-token: ${{ steps.app.outputs.token }}36 repo-token: ${{ steps.app.outputs.token }}
37 days-before-stale: 18337 days-before-stale: 183
@@ -67,7 +67,7 @@ jobs:
67 id: app67 id: app
68 # Create a GitHub App token68 # Create a GitHub App token
69 # https://github.com/marketplace/actions/create-github-app-token69 # https://github.com/marketplace/actions/create-github-app-token
70 uses: actions/create-github-app-token@v270 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
71 with:71 with:
72 app-id: ${{ vars.ST_BOT_APP_ID }}72 app-id: ${{ vars.ST_BOT_APP_ID }}
73 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}73 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -76,7 +76,7 @@ jobs:
76 - name: Mark Issues/PRs Awaiting User Response76 - name: Mark Issues/PRs Awaiting User Response
77 # Close Stale Issues and PRs77 # Close Stale Issues and PRs
78 # https://github.com/marketplace/actions/close-stale-issues78 # https://github.com/marketplace/actions/close-stale-issues
79 uses: actions/stale@v9.1.079 uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
80 with:80 with:
81 repo-token: ${{ steps.app.outputs.token }}81 repo-token: ${{ steps.app.outputs.token }}
82 days-before-stale: 782 days-before-stale: 7
@@ -105,7 +105,7 @@ jobs:
105 id: app105 id: app
106 # Create a GitHub App token106 # Create a GitHub App token
107 # https://github.com/marketplace/actions/create-github-app-token107 # https://github.com/marketplace/actions/create-github-app-token
108 uses: actions/create-github-app-token@v2108 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
109 with:109 with:
110 app-id: ${{ vars.ST_BOT_APP_ID }}110 app-id: ${{ vars.ST_BOT_APP_ID }}
111 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}111 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -114,7 +114,7 @@ jobs:
114 - name: Mark Issues with Alternative Exists114 - name: Mark Issues with Alternative Exists
115 # Close Stale Issues and PRs115 # Close Stale Issues and PRs
116 # https://github.com/marketplace/actions/close-stale-issues116 # https://github.com/marketplace/actions/close-stale-issues
117 uses: actions/stale@v9.1.0117 uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
118 with:118 with:
119 repo-token: ${{ steps.app.outputs.token }}119 repo-token: ${{ steps.app.outputs.token }}
120 days-before-stale: 7120 days-before-stale: 7
.github/workflows/npm-publish.yml+4 -4
@@ -15,8 +15,8 @@ jobs:
15 build:15 build:
16 runs-on: ubuntu-latest16 runs-on: ubuntu-latest
17 steps:17 steps:
18 - uses: actions/checkout@v318 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
19 - uses: actions/setup-node@v319 - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
20 with:20 with:
21 node-version: 2421 node-version: 24
22 - run: npm ci22 - run: npm ci
@@ -25,8 +25,8 @@ jobs:
25 needs: build25 needs: build
26 runs-on: ubuntu-latest26 runs-on: ubuntu-latest
27 steps:27 steps:
28 - uses: actions/checkout@v328 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
29 - uses: actions/setup-node@v329 - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
30 with:30 with:
31 node-version: 2431 node-version: 24
32 registry-url: https://registry.npmjs.org/32 registry-url: https://registry.npmjs.org/
.github/workflows/on-close-handler.yml+2 -2
@@ -22,7 +22,7 @@ jobs:
22 id: app22 id: app
23 # Create a GitHub App token23 # Create a GitHub App token
24 # https://github.com/marketplace/actions/create-github-app-token24 # https://github.com/marketplace/actions/create-github-app-token
25 uses: actions/create-github-app-token@v225 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
26 with:26 with:
27 app-id: ${{ vars.ST_BOT_APP_ID }}27 app-id: ${{ vars.ST_BOT_APP_ID }}
28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
31 - name: Remove Pending Labels on Close31 - name: Remove Pending Labels on Close
32 # πŸ€– Issues Helper32 # πŸ€– Issues Helper
33 # https://github.com/marketplace/actions/issues-helper33 # https://github.com/marketplace/actions/issues-helper
34 uses: actions-cool/issues-helper@v3.6.034 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
35 with:35 with:
36 actions: remove-labels36 actions: remove-labels
37 token: ${{ steps.app.outputs.token }}37 token: ${{ steps.app.outputs.token }}
.github/workflows/on-open-handler.yml+2 -2
@@ -22,7 +22,7 @@ jobs:
22 id: app22 id: app
23 # Create a GitHub App token23 # Create a GitHub App token
24 # https://github.com/marketplace/actions/create-github-app-token24 # https://github.com/marketplace/actions/create-github-app-token
25 uses: actions/create-github-app-token@v225 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
26 with:26 with:
27 app-id: ${{ vars.ST_BOT_APP_ID }}27 app-id: ${{ vars.ST_BOT_APP_ID }}
28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
31 - name: Label if Author is a Repo Maintainer31 - name: Label if Author is a Repo Maintainer
32 # πŸ€– Issues Helper32 # πŸ€– Issues Helper
33 # https://github.com/marketplace/actions/issues-helper33 # https://github.com/marketplace/actions/issues-helper
34 uses: actions-cool/issues-helper@v3.6.034 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
35 with:35 with:
36 actions: 'add-labels'36 actions: 'add-labels'
37 token: ${{ steps.app.outputs.token }}37 token: ${{ steps.app.outputs.token }}
.github/workflows/pr-auto-manager.yml+17 -17
@@ -31,7 +31,7 @@ jobs:
31 id: app31 id: app
32 # Create a GitHub App token32 # Create a GitHub App token
33 # https://github.com/marketplace/actions/create-github-app-token33 # https://github.com/marketplace/actions/create-github-app-token
34 uses: actions/create-github-app-token@v234 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
35 with:35 with:
36 app-id: ${{ vars.ST_BOT_APP_ID }}36 app-id: ${{ vars.ST_BOT_APP_ID }}
37 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}37 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -40,7 +40,7 @@ jobs:
40 - name: Label PR Size40 - name: Label PR Size
41 # Pull Request Size Labeler41 # Pull Request Size Labeler
42 # https://github.com/marketplace/actions/pull-request-size-labeler42 # https://github.com/marketplace/actions/pull-request-size-labeler
43 uses: codelytv/pr-size-labeler@v1.10.243 uses: codelytv/pr-size-labeler@4ec67706cd878fbc1c8db0a5dcd28b6bb412e85a # v1.10.3
44 with:44 with:
45 GITHUB_TOKEN: ${{ steps.app.outputs.token }}45 GITHUB_TOKEN: ${{ steps.app.outputs.token }}
46 xs_label: '🟩 ⬀○○○○'46 xs_label: '🟩 ⬀○○○○'
@@ -68,7 +68,7 @@ jobs:
68 id: app68 id: app
69 # Create a GitHub App token69 # Create a GitHub App token
70 # https://github.com/marketplace/actions/create-github-app-token70 # https://github.com/marketplace/actions/create-github-app-token
71 uses: actions/create-github-app-token@v271 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
72 with:72 with:
73 app-id: ${{ vars.ST_BOT_APP_ID }}73 app-id: ${{ vars.ST_BOT_APP_ID }}
74 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}74 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -77,12 +77,12 @@ jobs:
77 - name: Checkout Repository77 - name: Checkout Repository
78 # Checkout78 # Checkout
79 # https://github.com/marketplace/actions/checkout79 # https://github.com/marketplace/actions/checkout
80 uses: actions/checkout@v4.2.280 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8181
82 - name: Apply Labels Based on Branch Name and Target Branch82 - name: Apply Labels Based on Branch Name and Target Branch
83 # Pull Request Labeler83 # Pull Request Labeler
84 # https://github.com/marketplace/actions/labeler84 # https://github.com/marketplace/actions/labeler
85 uses: actions/labeler@v5.0.085 uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
86 with:86 with:
87 configuration-path: .github/pr-auto-labels-by-branch.yml87 configuration-path: .github/pr-auto-labels-by-branch.yml
88 repo-token: ${{ steps.app.outputs.token }}88 repo-token: ${{ steps.app.outputs.token }}
@@ -99,7 +99,7 @@ jobs:
99 id: app99 id: app
100 # Create a GitHub App token100 # Create a GitHub App token
101 # https://github.com/marketplace/actions/create-github-app-token101 # https://github.com/marketplace/actions/create-github-app-token
102 uses: actions/create-github-app-token@v2102 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
103 with:103 with:
104 app-id: ${{ vars.ST_BOT_APP_ID }}104 app-id: ${{ vars.ST_BOT_APP_ID }}
105 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}105 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -108,12 +108,12 @@ jobs:
108 - name: Checkout Repository108 - name: Checkout Repository
109 # Checkout109 # Checkout
110 # https://github.com/marketplace/actions/checkout110 # https://github.com/marketplace/actions/checkout
111 uses: actions/checkout@v4.2.2111 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
112112
113 - name: Apply Labels Based on Changed Files113 - name: Apply Labels Based on Changed Files
114 # Pull Request Labeler114 # Pull Request Labeler
115 # https://github.com/marketplace/actions/labeler115 # https://github.com/marketplace/actions/labeler
116 uses: actions/labeler@v5.0.0116 uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
117 env:117 env:
118 GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding118 GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding
119 with:119 with:
@@ -133,7 +133,7 @@ jobs:
133 id: app133 id: app
134 # Create a GitHub App token134 # Create a GitHub App token
135 # https://github.com/marketplace/actions/create-github-app-token135 # https://github.com/marketplace/actions/create-github-app-token
136 uses: actions/create-github-app-token@v2136 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
137 with:137 with:
138 app-id: ${{ vars.ST_BOT_APP_ID }}138 app-id: ${{ vars.ST_BOT_APP_ID }}
139 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}139 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -142,7 +142,7 @@ jobs:
142 - name: Add Vibe Coded Label142 - name: Add Vibe Coded Label
143 # πŸ€– Issues Helper143 # πŸ€– Issues Helper
144 # https://github.com/marketplace/actions/issues-helper144 # https://github.com/marketplace/actions/issues-helper
145 uses: actions-cool/issues-helper@v3.6.0145 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
146 with:146 with:
147 actions: 'add-labels'147 actions: 'add-labels'
148 token: ${{ steps.app.outputs.token }}148 token: ${{ steps.app.outputs.token }}
@@ -170,7 +170,7 @@ jobs:
170 # This action runs on comments, which will not receive the env vars for this170 # This action runs on comments, which will not receive the env vars for this
171 # Create a GitHub App token171 # Create a GitHub App token
172 # https://github.com/marketplace/actions/create-github-app-token172 # https://github.com/marketplace/actions/create-github-app-token
173 uses: actions/create-github-app-token@v2173 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
174 with:174 with:
175 app-id: ${{ vars.ST_BOT_APP_ID }}175 app-id: ${{ vars.ST_BOT_APP_ID }}
176 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}176 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -180,7 +180,7 @@ jobs:
180 if: always()180 if: always()
181 # πŸ€– Issues Helper181 # πŸ€– Issues Helper
182 # https://github.com/marketplace/actions/issues-helper182 # https://github.com/marketplace/actions/issues-helper
183 uses: actions-cool/issues-helper@v3.6.0183 uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0
184 with:184 with:
185 actions: 'remove-labels'185 actions: 'remove-labels'
186 token: ${{ steps.app.outputs.token || github.token }} # Use fallback to GITHUB_TOKEN if app token is not available186 token: ${{ steps.app.outputs.token || github.token }} # Use fallback to GITHUB_TOKEN if app token is not available
@@ -205,7 +205,7 @@ jobs:
205 # GitHub Script205 # GitHub Script
206 # https://github.com/marketplace/actions/github-script206 # https://github.com/marketplace/actions/github-script
207 id: label-check207 id: label-check
208 uses: actions/github-script@v7.0.1208 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
209 with:209 with:
210 script: |210 script: |
211 const prLabels = context.payload.pull_request.labels.map(label => label.name);211 const prLabels = context.payload.pull_request.labels.map(label => label.name);
@@ -249,7 +249,7 @@ jobs:
249 id: app249 id: app
250 # Create a GitHub App token250 # Create a GitHub App token
251 # https://github.com/marketplace/actions/create-github-app-token251 # https://github.com/marketplace/actions/create-github-app-token
252 uses: actions/create-github-app-token@v2252 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
253 with:253 with:
254 app-id: ${{ vars.ST_BOT_APP_ID }}254 app-id: ${{ vars.ST_BOT_APP_ID }}
255 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}255 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -258,12 +258,12 @@ jobs:
258 - name: Checkout Repository258 - name: Checkout Repository
259 # Checkout259 # Checkout
260 # https://github.com/marketplace/actions/checkout260 # https://github.com/marketplace/actions/checkout
261 uses: actions/checkout@v4.2.2261 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
262262
263 - name: Post PR Comments Based on Labels263 - name: Post PR Comments Based on Labels
264 # Label Commenter for PRs264 # Label Commenter for PRs
265 # https://github.com/marketplace/actions/label-commenter265 # https://github.com/marketplace/actions/label-commenter
266 uses: peaceiris/actions-label-commenter@v1.10.0266 uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0
267 with:267 with:
268 config_file: .github/pr-auto-comments.yml268 config_file: .github/pr-auto-comments.yml
269 github_token: ${{ steps.app.outputs.token }}269 github_token: ${{ steps.app.outputs.token }}
@@ -289,7 +289,7 @@ jobs:
289 id: app289 id: app
290 # Create a GitHub App token290 # Create a GitHub App token
291 # https://github.com/marketplace/actions/create-github-app-token291 # https://github.com/marketplace/actions/create-github-app-token
292 uses: actions/create-github-app-token@v2292 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
293 with:293 with:
294 app-id: ${{ vars.ST_BOT_APP_ID }}294 app-id: ${{ vars.ST_BOT_APP_ID }}
295 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}295 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
.github/workflows/pr-check-merge-conflicts.yaml+2 -2
@@ -22,7 +22,7 @@ jobs:
22 id: app22 id: app
23 # Create a GitHub App token23 # Create a GitHub App token
24 # https://github.com/marketplace/actions/create-github-app-token24 # https://github.com/marketplace/actions/create-github-app-token
25 uses: actions/create-github-app-token@v225 uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2
26 with:26 with:
27 app-id: ${{ vars.ST_BOT_APP_ID }}27 app-id: ${{ vars.ST_BOT_APP_ID }}
28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}28 private-key: ${{ secrets.ST_BOT_PRIVATE_KEY }}
@@ -31,7 +31,7 @@ jobs:
31 - name: Check Merge Conflicts31 - name: Check Merge Conflicts
32 # Label Conflicting Pull Requests32 # Label Conflicting Pull Requests
33 # https://github.com/marketplace/actions/label-conflicting-pull-requests33 # https://github.com/marketplace/actions/label-conflicting-pull-requests
34 uses: eps1lon/actions-label-merge-conflict@v3.0.334 uses: eps1lon/actions-label-merge-conflict@1df065ebe6e3310545d4f4c4e862e43bdca146f0 # v3.0.3
35 with:35 with:
36 dirtyLabel: '🚫 Merge Conflicts'36 dirtyLabel: '🚫 Merge Conflicts'
37 repoToken: ${{ steps.app.outputs.token }}37 repoToken: ${{ steps.app.outputs.token }}
.github/workflows/pr-checks.yml+5 -5
@@ -24,7 +24,7 @@ jobs:
24 - name: Checkout Repository24 - name: Checkout Repository
25 # Checkout25 # Checkout
26 # https://github.com/marketplace/actions/checkout26 # https://github.com/marketplace/actions/checkout
27 uses: actions/checkout@v4.2.227 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28 with:28 with:
29 ref: ${{ github.event.pull_request.head.sha }}29 ref: ${{ github.event.pull_request.head.sha }}
30 repository: ${{ github.event.pull_request.head.repo.full_name }}30 repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -32,7 +32,7 @@ jobs:
32 - name: Setup Node.js32 - name: Setup Node.js
33 # Setup Node.js environment33 # Setup Node.js environment
34 # https://github.com/marketplace/actions/setup-node-js-environment34 # https://github.com/marketplace/actions/setup-node-js-environment
35 uses: actions/setup-node@v4.3.035 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
36 with:36 with:
37 node-version: 2037 node-version: 20
3838
@@ -42,7 +42,7 @@ jobs:
42 - name: Run ESLint42 - name: Run ESLint
43 # Action ESLint43 # Action ESLint
44 # https://github.com/marketplace/actions/action-eslint44 # https://github.com/marketplace/actions/action-eslint
45 uses: sibiraj-s/action-eslint@v3.0.145 uses: sibiraj-s/action-eslint@bcf41bb9abce43cdbad51ab9b3da2eddaa17eab3 # v3.0.1
46 with:46 with:
47 token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions47 token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions
48 eslint-args: '--ignore-path=.gitignore --quiet'48 eslint-args: '--ignore-path=.gitignore --quiet'
@@ -62,7 +62,7 @@ jobs:
62 - name: Checkout Repository62 - name: Checkout Repository
63 # Checkout63 # Checkout
64 # https://github.com/marketplace/actions/checkout64 # https://github.com/marketplace/actions/checkout
65 uses: actions/checkout@v4.2.265 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
66 with:66 with:
67 ref: ${{ github.event.pull_request.head.sha }}67 ref: ${{ github.event.pull_request.head.sha }}
68 repository: ${{ github.event.pull_request.head.repo.full_name }}68 repository: ${{ github.event.pull_request.head.repo.full_name }}
@@ -70,7 +70,7 @@ jobs:
70 - name: Setup Node.js70 - name: Setup Node.js
71 # Setup Node.js environment71 # Setup Node.js environment
72 # https://github.com/marketplace/actions/setup-node-js-environment72 # https://github.com/marketplace/actions/setup-node-js-environment
73 uses: actions/setup-node@v4.3.073 uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
74 with:74 with:
75 node-version: 2075 node-version: 20
7676
.github/workflows/update-i18n.yaml+0 -32
@@ -1,32 +0,0 @@
1name: Update i18n data
2
3on: workflow_dispatch
4
5jobs:
6 build:
7 runs-on: ubuntu-latest
8 permissions: # Job-level permissions configuration starts here
9 contents: write # 'write' access to repository contents
10 steps:
11 - name: disable auto crlf
12 uses: steve02081504/disable-autocrlf@v1
13 - uses: actions/checkout@v4
14 with:
15 ref: ${{ github.head_ref }}
16 fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
17 - name: Create local changes
18 run: |
19 aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/generate.py
20 aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/requirements.txt
21 pip install -r ./requirements.txt
22 python ./generate.py "" --sort-keys
23 rm -f ./generate.py ./requirements.txt
24 - name: add all
25 run: git add -A
26 - name: push
27 uses: actions-go/push@master
28 with:
29 author-email: 41898282+github-actions[bot]@users.noreply.github.com
30 author-name: github-actions[bot]
31 commit-message: 'i18n changes'
32 remote: origin