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>
Signed| @@ -35,13 +35,13 @@ jobs: | |||
| 35 | # It's currently not possible to have `branches` under the `schedule` trigger | 35 | # 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.2 | 38 | uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 |
| 39 | with: | 39 | with: |
| 40 | ref: "release" | 40 | ref: "release" |
| 41 | 41 | ||
| 42 | - name: Checkout the staging branch | 42 | - name: Checkout the staging branch |
| 43 | if: ${{ github.event_name == 'schedule' }} | 43 | if: ${{ github.event_name == 'schedule' }} |
| 44 | uses: actions/checkout@v4.1.2 | 44 | uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 |
| 45 | with: | 45 | with: |
| 46 | ref: "staging" | 46 | ref: "staging" |
| 47 | 47 | ||
| @@ -55,13 +55,13 @@ jobs: | |||
| 55 | 55 | ||
| 56 | # Setting up QEMU for multi-arch image build | 56 | # Setting up QEMU for multi-arch image build |
| 57 | - name: Set up QEMU | 57 | - name: Set up QEMU |
| 58 | uses: docker/setup-qemu-action@v3 | 58 | uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 |
| 59 | 59 | ||
| 60 | - name: Set up Docker Buildx | 60 | - name: Set up Docker Buildx |
| 61 | uses: docker/setup-buildx-action@v3 | 61 | uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3 |
| 62 | 62 | ||
| 63 | - name: Extract metadata (tags, labels) for the image | 63 | - name: Extract metadata (tags, labels) for the image |
| 64 | uses: docker/metadata-action@v5.5.1 | 64 | uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81 # v5.5.1 |
| 65 | id: metadata | 65 | 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: | |||
| 74 | 74 | ||
| 75 | # Login into package repository as the person who created the release | 75 | # Login into package repository as the person who created the release |
| 76 | - name: Log in to the Container registry | 76 | - name: Log in to the Container registry |
| 77 | uses: docker/login-action@v3 | 77 | 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 name | 84 | # Tag it with branch name |
| 85 | # Assumes branch name is the version number | 85 | # Assumes branch name is the version number |
| 86 | - name: Build and push | 86 | - name: Build and push |
| 87 | uses: docker/build-push-action@v5.3.0 | 87 | uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 |
| 88 | with: | 88 | with: |
| 89 | context: . | 89 | context: . |
| 90 | platforms: linux/amd64,linux/arm64 | 90 | platforms: linux/amd64,linux/arm64 |
| @@ -22,7 +22,7 @@ jobs: | |||
| 22 | id: app | 22 | id: app |
| 23 | # Create a GitHub App token | 23 | # Create a GitHub App token |
| 24 | # https://github.com/marketplace/actions/create-github-app-token | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | uses: actions/create-github-app-token@v2 | 25 | 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 Repository | 31 | - name: Checkout Repository |
| 32 | # Checkout | 32 | # Checkout |
| 33 | # https://github.com/marketplace/actions/checkout | 33 | # https://github.com/marketplace/actions/checkout |
| 34 | uses: actions/checkout@v4.2.2 | 34 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 35 | 35 | ||
| 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: | |||
| 39 | 39 | ||
| 40 | # Issue Labeler | 40 | # Issue Labeler |
| 41 | # https://github.com/marketplace/actions/regex-issue-labeler | 41 | # https://github.com/marketplace/actions/regex-issue-labeler |
| 42 | uses: github/issue-labeler@v3.4 | 42 | uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4 |
| 43 | with: | 43 | with: |
| 44 | configuration-path: .github/issues-auto-labels.yml | 44 | configuration-path: .github/issues-auto-labels.yml |
| 45 | enable-versioned-regex: 0 | 45 | enable-versioned-regex: 0 |
| @@ -56,7 +56,7 @@ jobs: | |||
| 56 | id: app | 56 | id: app |
| 57 | # Create a GitHub App token | 57 | # Create a GitHub App token |
| 58 | # https://github.com/marketplace/actions/create-github-app-token | 58 | # https://github.com/marketplace/actions/create-github-app-token |
| 59 | uses: actions/create-github-app-token@v2 | 59 | 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 Helper | 67 | # π€ Issues Helper |
| 68 | # https://github.com/marketplace/actions/issues-helper | 68 | # https://github.com/marketplace/actions/issues-helper |
| 69 | uses: actions-cool/issues-helper@v3.6.0 | 69 | 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 Helper | 77 | # π€ Issues Helper |
| 78 | # https://github.com/marketplace/actions/issues-helper | 78 | # https://github.com/marketplace/actions/issues-helper |
| 79 | uses: actions-cool/issues-helper@v3.6.0 | 79 | 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 Helper | 87 | # π€ Issues Helper |
| 88 | # https://github.com/marketplace/actions/issues-helper | 88 | # https://github.com/marketplace/actions/issues-helper |
| 89 | uses: actions-cool/issues-helper@v3.6.0 | 89 | 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 Helper | 97 | # π€ Issues Helper |
| 98 | # https://github.com/marketplace/actions/issues-helper | 98 | # https://github.com/marketplace/actions/issues-helper |
| 99 | uses: actions-cool/issues-helper@v3.6.0 | 99 | 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: app | 114 | id: app |
| 115 | # Create a GitHub App token | 115 | # Create a GitHub App token |
| 116 | # https://github.com/marketplace/actions/create-github-app-token | 116 | # https://github.com/marketplace/actions/create-github-app-token |
| 117 | uses: actions/create-github-app-token@v2 | 117 | 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 Label | 123 | - name: Remove Stale Label |
| 124 | # π€ Issues Helper | 124 | # π€ Issues Helper |
| 125 | # https://github.com/marketplace/actions/issues-helper | 125 | # https://github.com/marketplace/actions/issues-helper |
| 126 | uses: actions-cool/issues-helper@v3.6.0 | 126 | 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: app | 141 | id: app |
| 142 | # Create a GitHub App token | 142 | # Create a GitHub App token |
| 143 | # https://github.com/marketplace/actions/create-github-app-token | 143 | # https://github.com/marketplace/actions/create-github-app-token |
| 144 | uses: actions/create-github-app-token@v2 | 144 | 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 Repository | 150 | - name: Checkout Repository |
| 151 | # Checkout | 151 | # Checkout |
| 152 | # https://github.com/marketplace/actions/checkout | 152 | # https://github.com/marketplace/actions/checkout |
| 153 | uses: actions/checkout@v4.2.2 | 153 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 154 | 154 | ||
| 155 | - name: Post Issue Comments Based on Labels | 155 | - name: Post Issue Comments Based on Labels |
| 156 | # Label Commenter | 156 | # Label Commenter |
| 157 | # https://github.com/marketplace/actions/label-commenter | 157 | # https://github.com/marketplace/actions/label-commenter |
| 158 | uses: peaceiris/actions-label-commenter@v1.10.0 | 158 | uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0 |
| 159 | with: | 159 | with: |
| 160 | config_file: .github/issues-auto-comments.yml | 160 | config_file: .github/issues-auto-comments.yml |
| 161 | github_token: ${{ steps.app.outputs.token }} | 161 | github_token: ${{ steps.app.outputs.token }} |
| @@ -22,7 +22,7 @@ jobs: | |||
| 22 | id: app | 22 | id: app |
| 23 | # Create a GitHub App token | 23 | # Create a GitHub App token |
| 24 | # https://github.com/marketplace/actions/create-github-app-token | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | uses: actions/create-github-app-token@v2 | 25 | 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 Repository | 31 | - name: Checkout Repository |
| 32 | # Checkout | 32 | # Checkout |
| 33 | # https://github.com/marketplace/actions/checkout | 33 | # https://github.com/marketplace/actions/checkout |
| 34 | uses: actions/checkout@v4.2.2 | 34 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 35 | 35 | ||
| 36 | - name: Extract Linked Issues from Commit Message | 36 | - name: Extract Linked Issues from Commit Message |
| 37 | id: extract_issues | 37 | id: extract_issues |
| @@ -22,7 +22,7 @@ jobs: | |||
| 22 | id: app | 22 | id: app |
| 23 | # Create a GitHub App token | 23 | # Create a GitHub App token |
| 24 | # https://github.com/marketplace/actions/create-github-app-token | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | uses: actions/create-github-app-token@v2 | 25 | 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 Activity | 31 | - name: Mark Issues/PRs without Activity |
| 32 | # Close Stale Issues and PRs | 32 | # Close Stale Issues and PRs |
| 33 | # https://github.com/marketplace/actions/close-stale-issues | 33 | # https://github.com/marketplace/actions/close-stale-issues |
| 34 | uses: actions/stale@v9.1.0 | 34 | 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: 183 | 37 | days-before-stale: 183 |
| @@ -67,7 +67,7 @@ jobs: | |||
| 67 | id: app | 67 | id: app |
| 68 | # Create a GitHub App token | 68 | # Create a GitHub App token |
| 69 | # https://github.com/marketplace/actions/create-github-app-token | 69 | # https://github.com/marketplace/actions/create-github-app-token |
| 70 | uses: actions/create-github-app-token@v2 | 70 | 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 Response | 76 | - name: Mark Issues/PRs Awaiting User Response |
| 77 | # Close Stale Issues and PRs | 77 | # Close Stale Issues and PRs |
| 78 | # https://github.com/marketplace/actions/close-stale-issues | 78 | # https://github.com/marketplace/actions/close-stale-issues |
| 79 | uses: actions/stale@v9.1.0 | 79 | 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: 7 | 82 | days-before-stale: 7 |
| @@ -105,7 +105,7 @@ jobs: | |||
| 105 | id: app | 105 | id: app |
| 106 | # Create a GitHub App token | 106 | # Create a GitHub App token |
| 107 | # https://github.com/marketplace/actions/create-github-app-token | 107 | # https://github.com/marketplace/actions/create-github-app-token |
| 108 | uses: actions/create-github-app-token@v2 | 108 | 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 Exists | 114 | - name: Mark Issues with Alternative Exists |
| 115 | # Close Stale Issues and PRs | 115 | # Close Stale Issues and PRs |
| 116 | # https://github.com/marketplace/actions/close-stale-issues | 116 | # https://github.com/marketplace/actions/close-stale-issues |
| 117 | uses: actions/stale@v9.1.0 | 117 | 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: 7 | 120 | days-before-stale: 7 |
| @@ -15,8 +15,8 @@ jobs: | |||
| 15 | build: | 15 | build: |
| 16 | runs-on: ubuntu-latest | 16 | runs-on: ubuntu-latest |
| 17 | steps: | 17 | steps: |
| 18 | - uses: actions/checkout@v3 | 18 | - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
| 19 | - uses: actions/setup-node@v3 | 19 | - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 |
| 20 | with: | 20 | with: |
| 21 | node-version: 24 | 21 | node-version: 24 |
| 22 | - run: npm ci | 22 | - run: npm ci |
| @@ -25,8 +25,8 @@ jobs: | |||
| 25 | needs: build | 25 | needs: build |
| 26 | runs-on: ubuntu-latest | 26 | runs-on: ubuntu-latest |
| 27 | steps: | 27 | steps: |
| 28 | - uses: actions/checkout@v3 | 28 | - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 |
| 29 | - uses: actions/setup-node@v3 | 29 | - uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3 |
| 30 | with: | 30 | with: |
| 31 | node-version: 24 | 31 | node-version: 24 |
| 32 | registry-url: https://registry.npmjs.org/ | 32 | registry-url: https://registry.npmjs.org/ |
| @@ -22,7 +22,7 @@ jobs: | |||
| 22 | id: app | 22 | id: app |
| 23 | # Create a GitHub App token | 23 | # Create a GitHub App token |
| 24 | # https://github.com/marketplace/actions/create-github-app-token | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | uses: actions/create-github-app-token@v2 | 25 | 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 Close | 31 | - name: Remove Pending Labels on Close |
| 32 | # π€ Issues Helper | 32 | # π€ Issues Helper |
| 33 | # https://github.com/marketplace/actions/issues-helper | 33 | # https://github.com/marketplace/actions/issues-helper |
| 34 | uses: actions-cool/issues-helper@v3.6.0 | 34 | uses: actions-cool/issues-helper@a610082f8ac0cf03e357eb8dd0d5e2ba075e017e # v3.6.0 |
| 35 | with: | 35 | with: |
| 36 | actions: remove-labels | 36 | actions: remove-labels |
| 37 | token: ${{ steps.app.outputs.token }} | 37 | token: ${{ steps.app.outputs.token }} |
| @@ -22,7 +22,7 @@ jobs: | |||
| 22 | id: app | 22 | id: app |
| 23 | # Create a GitHub App token | 23 | # Create a GitHub App token |
| 24 | # https://github.com/marketplace/actions/create-github-app-token | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | uses: actions/create-github-app-token@v2 | 25 | 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 Maintainer | 31 | - name: Label if Author is a Repo Maintainer |
| 32 | # π€ Issues Helper | 32 | # π€ Issues Helper |
| 33 | # https://github.com/marketplace/actions/issues-helper | 33 | # https://github.com/marketplace/actions/issues-helper |
| 34 | uses: actions-cool/issues-helper@v3.6.0 | 34 | 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 }} |
| @@ -31,7 +31,7 @@ jobs: | |||
| 31 | id: app | 31 | id: app |
| 32 | # Create a GitHub App token | 32 | # Create a GitHub App token |
| 33 | # https://github.com/marketplace/actions/create-github-app-token | 33 | # https://github.com/marketplace/actions/create-github-app-token |
| 34 | uses: actions/create-github-app-token@v2 | 34 | 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 Size | 40 | - name: Label PR Size |
| 41 | # Pull Request Size Labeler | 41 | # Pull Request Size Labeler |
| 42 | # https://github.com/marketplace/actions/pull-request-size-labeler | 42 | # https://github.com/marketplace/actions/pull-request-size-labeler |
| 43 | uses: codelytv/pr-size-labeler@v1.10.2 | 43 | 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: app | 68 | id: app |
| 69 | # Create a GitHub App token | 69 | # Create a GitHub App token |
| 70 | # https://github.com/marketplace/actions/create-github-app-token | 70 | # https://github.com/marketplace/actions/create-github-app-token |
| 71 | uses: actions/create-github-app-token@v2 | 71 | 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 Repository | 77 | - name: Checkout Repository |
| 78 | # Checkout | 78 | # Checkout |
| 79 | # https://github.com/marketplace/actions/checkout | 79 | # https://github.com/marketplace/actions/checkout |
| 80 | uses: actions/checkout@v4.2.2 | 80 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 81 | 81 | ||
| 82 | - name: Apply Labels Based on Branch Name and Target Branch | 82 | - name: Apply Labels Based on Branch Name and Target Branch |
| 83 | # Pull Request Labeler | 83 | # Pull Request Labeler |
| 84 | # https://github.com/marketplace/actions/labeler | 84 | # https://github.com/marketplace/actions/labeler |
| 85 | uses: actions/labeler@v5.0.0 | 85 | uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 |
| 86 | with: | 86 | with: |
| 87 | configuration-path: .github/pr-auto-labels-by-branch.yml | 87 | 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: app | 99 | id: app |
| 100 | # Create a GitHub App token | 100 | # Create a GitHub App token |
| 101 | # https://github.com/marketplace/actions/create-github-app-token | 101 | # https://github.com/marketplace/actions/create-github-app-token |
| 102 | uses: actions/create-github-app-token@v2 | 102 | 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 Repository | 108 | - name: Checkout Repository |
| 109 | # Checkout | 109 | # Checkout |
| 110 | # https://github.com/marketplace/actions/checkout | 110 | # https://github.com/marketplace/actions/checkout |
| 111 | uses: actions/checkout@v4.2.2 | 111 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 112 | 112 | ||
| 113 | - name: Apply Labels Based on Changed Files | 113 | - name: Apply Labels Based on Changed Files |
| 114 | # Pull Request Labeler | 114 | # Pull Request Labeler |
| 115 | # https://github.com/marketplace/actions/labeler | 115 | # https://github.com/marketplace/actions/labeler |
| 116 | uses: actions/labeler@v5.0.0 | 116 | uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0 |
| 117 | env: | 117 | env: |
| 118 | GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding | 118 | GITHUB_TOKEN: ${{ steps.app.outputs.token }} # labeler action needs some handholding |
| 119 | with: | 119 | with: |
| @@ -133,7 +133,7 @@ jobs: | |||
| 133 | id: app | 133 | id: app |
| 134 | # Create a GitHub App token | 134 | # Create a GitHub App token |
| 135 | # https://github.com/marketplace/actions/create-github-app-token | 135 | # https://github.com/marketplace/actions/create-github-app-token |
| 136 | uses: actions/create-github-app-token@v2 | 136 | 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 Label | 142 | - name: Add Vibe Coded Label |
| 143 | # π€ Issues Helper | 143 | # π€ Issues Helper |
| 144 | # https://github.com/marketplace/actions/issues-helper | 144 | # https://github.com/marketplace/actions/issues-helper |
| 145 | uses: actions-cool/issues-helper@v3.6.0 | 145 | 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 this | 170 | # This action runs on comments, which will not receive the env vars for this |
| 171 | # Create a GitHub App token | 171 | # Create a GitHub App token |
| 172 | # https://github.com/marketplace/actions/create-github-app-token | 172 | # https://github.com/marketplace/actions/create-github-app-token |
| 173 | uses: actions/create-github-app-token@v2 | 173 | 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 Helper | 181 | # π€ Issues Helper |
| 182 | # https://github.com/marketplace/actions/issues-helper | 182 | # https://github.com/marketplace/actions/issues-helper |
| 183 | uses: actions-cool/issues-helper@v3.6.0 | 183 | 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 available | 186 | 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 Script | 205 | # GitHub Script |
| 206 | # https://github.com/marketplace/actions/github-script | 206 | # https://github.com/marketplace/actions/github-script |
| 207 | id: label-check | 207 | id: label-check |
| 208 | uses: actions/github-script@v7.0.1 | 208 | 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: app | 249 | id: app |
| 250 | # Create a GitHub App token | 250 | # Create a GitHub App token |
| 251 | # https://github.com/marketplace/actions/create-github-app-token | 251 | # https://github.com/marketplace/actions/create-github-app-token |
| 252 | uses: actions/create-github-app-token@v2 | 252 | 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 Repository | 258 | - name: Checkout Repository |
| 259 | # Checkout | 259 | # Checkout |
| 260 | # https://github.com/marketplace/actions/checkout | 260 | # https://github.com/marketplace/actions/checkout |
| 261 | uses: actions/checkout@v4.2.2 | 261 | uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 262 | 262 | ||
| 263 | - name: Post PR Comments Based on Labels | 263 | - name: Post PR Comments Based on Labels |
| 264 | # Label Commenter for PRs | 264 | # Label Commenter for PRs |
| 265 | # https://github.com/marketplace/actions/label-commenter | 265 | # https://github.com/marketplace/actions/label-commenter |
| 266 | uses: peaceiris/actions-label-commenter@v1.10.0 | 266 | uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1.10.0 |
| 267 | with: | 267 | with: |
| 268 | config_file: .github/pr-auto-comments.yml | 268 | 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: app | 289 | id: app |
| 290 | # Create a GitHub App token | 290 | # Create a GitHub App token |
| 291 | # https://github.com/marketplace/actions/create-github-app-token | 291 | # https://github.com/marketplace/actions/create-github-app-token |
| 292 | uses: actions/create-github-app-token@v2 | 292 | 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 }} |
| @@ -22,7 +22,7 @@ jobs: | |||
| 22 | id: app | 22 | id: app |
| 23 | # Create a GitHub App token | 23 | # Create a GitHub App token |
| 24 | # https://github.com/marketplace/actions/create-github-app-token | 24 | # https://github.com/marketplace/actions/create-github-app-token |
| 25 | uses: actions/create-github-app-token@v2 | 25 | 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 Conflicts | 31 | - name: Check Merge Conflicts |
| 32 | # Label Conflicting Pull Requests | 32 | # Label Conflicting Pull Requests |
| 33 | # https://github.com/marketplace/actions/label-conflicting-pull-requests | 33 | # https://github.com/marketplace/actions/label-conflicting-pull-requests |
| 34 | uses: eps1lon/actions-label-merge-conflict@v3.0.3 | 34 | 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 }} |
| @@ -24,7 +24,7 @@ jobs: | |||
| 24 | - name: Checkout Repository | 24 | - name: Checkout Repository |
| 25 | # Checkout | 25 | # Checkout |
| 26 | # https://github.com/marketplace/actions/checkout | 26 | # https://github.com/marketplace/actions/checkout |
| 27 | uses: actions/checkout@v4.2.2 | 27 | 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.js | 32 | - name: Setup Node.js |
| 33 | # Setup Node.js environment | 33 | # Setup Node.js environment |
| 34 | # https://github.com/marketplace/actions/setup-node-js-environment | 34 | # https://github.com/marketplace/actions/setup-node-js-environment |
| 35 | uses: actions/setup-node@v4.3.0 | 35 | uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 |
| 36 | with: | 36 | with: |
| 37 | node-version: 20 | 37 | node-version: 20 |
| 38 | 38 | ||
| @@ -42,7 +42,7 @@ jobs: | |||
| 42 | - name: Run ESLint | 42 | - name: Run ESLint |
| 43 | # Action ESLint | 43 | # Action ESLint |
| 44 | # https://github.com/marketplace/actions/action-eslint | 44 | # https://github.com/marketplace/actions/action-eslint |
| 45 | uses: sibiraj-s/action-eslint@v3.0.1 | 45 | uses: sibiraj-s/action-eslint@bcf41bb9abce43cdbad51ab9b3da2eddaa17eab3 # v3.0.1 |
| 46 | with: | 46 | with: |
| 47 | token: ${{ secrets.GITHUB_TOKEN }} # ESLint can run with the original permissions | 47 | 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 Repository | 62 | - name: Checkout Repository |
| 63 | # Checkout | 63 | # Checkout |
| 64 | # https://github.com/marketplace/actions/checkout | 64 | # https://github.com/marketplace/actions/checkout |
| 65 | uses: actions/checkout@v4.2.2 | 65 | 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.js | 70 | - name: Setup Node.js |
| 71 | # Setup Node.js environment | 71 | # Setup Node.js environment |
| 72 | # https://github.com/marketplace/actions/setup-node-js-environment | 72 | # https://github.com/marketplace/actions/setup-node-js-environment |
| 73 | uses: actions/setup-node@v4.3.0 | 73 | uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 |
| 74 | with: | 74 | with: |
| 75 | node-version: 20 | 75 | node-version: 20 |
| 76 | 76 | ||
| @@ -1,32 +0,0 @@ | |||
| 1 | name: Update i18n data | ||
| 2 | |||
| 3 | on: workflow_dispatch | ||
| 4 | |||
| 5 | jobs: | ||
| 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 | ||