Skip to content

Commit 64736b0

Browse files
Update GitHub template files
1 parent 8af2e53 commit 64736b0

5 files changed

Lines changed: 56 additions & 25 deletions

File tree

.github/renovate.json5

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
$schema: "https://docs.renovatebot.com/renovate-schema.json",
3+
extends: [
4+
":dependencyDashboard",
5+
":semanticPrefixFixDepsChoreOthers",
6+
":ignoreModulesAndTests",
7+
"workarounds:all",
8+
"helpers:pinGitHubActionDigestsToSemver",
9+
"docker:disable",
10+
],
11+
rangeStrategy: "bump",
12+
ignorePaths: ["**/node_modules/**"],
13+
packageRules: [
14+
{
15+
groupName: "github-actions",
16+
matchManagers: ["github-actions"],
17+
},
18+
{
19+
matchManagers: ["npm"],
20+
groupName: "dependencies",
21+
matchDepTypes: ["devDependencies", "dependencies", "peerDependencies"],
22+
enabled: false,
23+
},
24+
{
25+
description: "Disable package manager version updates",
26+
matchPackageNames: ["pnpm"],
27+
matchDepTypes: ["packageManager"],
28+
enabled: false,
29+
},
30+
],
31+
}

.github/workflows/deployment.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
src: ${{ steps.filter.outputs.src }}
2424
steps:
2525
- name: Check out the repo
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2727

28-
- uses: dorny/paths-filter@v3
28+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
2929
id: filter
3030
with:
3131
filters: |
@@ -43,19 +43,19 @@ jobs:
4343
steps:
4444
- name: Generate GitHub App token
4545
id: generate_token
46-
uses: tibdex/[email protected]
46+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
4747
with:
4848
app_id: ${{ secrets.BOT_APP_ID }}
4949
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
5050

5151
- name: Checkout Repo
52-
uses: actions/checkout@v4
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5353

5454
- name: Setup PNPM
5555
uses: pnpm/action-setup@v3
5656

5757
- name: Setup Node
58-
uses: actions/setup-node@v4
58+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
5959
with:
6060
node-version: ${{ env.NODE_VERSION }}
6161
cache: "pnpm"
@@ -64,7 +64,7 @@ jobs:
6464
run: pnpm i
6565

6666
- name: Create Release Pull Request
67-
uses: changesets/action@v1
67+
uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc # v1.4.10
6868
id: changesets
6969
with:
7070
version: pnpm run version
@@ -90,7 +90,7 @@ jobs:
9090
IMAGE_TAG: ${{ env.IMAGE_TAG }}
9191
steps:
9292
- name: Check out the repo
93-
uses: actions/checkout@v4
93+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9494

9595
- name: Read version from package.json
9696
id: get_version
@@ -114,7 +114,7 @@ jobs:
114114
contents: write
115115
steps:
116116
- name: Check out the repo
117-
uses: actions/checkout@v4
117+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
118118
with:
119119
fetch-depth: 0
120120

@@ -124,7 +124,7 @@ jobs:
124124
package_json_file: ./src/package.json
125125

126126
- name: Setup Node
127-
uses: actions/setup-node@v4
127+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
128128
with:
129129
node-version: ${{ env.NODE_VERSION }}
130130
cache: pnpm
@@ -141,22 +141,22 @@ jobs:
141141
working-directory: ./src
142142

143143
- name: Set up Docker Buildx
144-
uses: docker/setup-buildx-action@v3
144+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0
145145

146146
- name: Log in to Docker Hub
147-
uses: docker/login-action@v3
147+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
148148
with:
149149
username: ${{ secrets.DOCKER_USERNAME }}
150150
password: ${{ secrets.DOCKER_PASSWORD }}
151151

152152
- name: Extract metadata (tags, labels) for Docker
153153
id: meta
154-
uses: docker/metadata-action@v5
154+
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 # v5.7.0
155155
with:
156156
images: ${{ env.REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}
157157

158158
- name: Build and push Docker image
159-
uses: docker/build-push-action@v6
159+
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
160160
with:
161161
context: .
162162
push: true
@@ -169,7 +169,7 @@ jobs:
169169
run: |
170170
yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }}"' -i manifest/deployment.yaml
171171
172-
- uses: stefanzweifel/git-auto-commit-action@v4
172+
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
173173
with:
174174
commit_message: update deployment.json container image (automated)
175175

@@ -181,10 +181,10 @@ jobs:
181181
contents: write
182182
steps:
183183
- name: Check out the repo
184-
uses: actions/checkout@v4
184+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
185185

186186
- id: extract-changelog
187-
uses: sean0x42/[email protected]
187+
uses: sean0x42/markdown-extract@7b185cbe85263116bbf741e739e7198ba86465dc # v2.1.0
188188
with:
189189
file: src/CHANGELOG.md
190190
pattern: ${{ needs.image-tag.outputs.IMAGE_TAG }}
@@ -210,7 +210,7 @@ jobs:
210210
if: env.RELEASE_SKIPPED == 'false'
211211
env:
212212
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
213-
uses: Ilshidur/[email protected]
213+
uses: Ilshidur/action-discord@0c4b27844ba47cb1c7bee539c8eead5284ce9fa9 # 0.3.2
214214
with:
215215
args: |
216216
# ${{ env.IMAGE_NAME }}@${{ needs.image-tag.outputs.IMAGE_TAG }}

.github/workflows/format.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
autofix:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414

1515
- name: Setup PNPM
1616
uses: pnpm/action-setup@v3
1717

1818
- name: Setup Node
19-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2020
with:
2121
node-version: 20
2222
cache: "pnpm"
@@ -34,4 +34,4 @@ jobs:
3434
shopt -s globstar
3535
find . -name '*.png' -exec pngquant --ext .png 256 {} \;
3636
37-
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
37+
- uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef

.github/workflows/labeler.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
steps:
1212
- name: Generate GitHub App token
1313
id: generate_token
14-
uses: tibdex/[email protected]
14+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
1515
with:
1616
app_id: ${{ secrets.BOT_APP_ID }}
1717
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
1818

19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
- name: Ensure labels exist
2121
env:
2222
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
@@ -49,7 +49,7 @@ jobs:
4949
gh label create "🏯 styles" --description "Stylesheets or design updates" --color "550F5A" --force
5050
gh label create "🔒 wontfix" --description "This will not be worked on" --color "FFFFFF" --force
5151
52-
- uses: actions/labeler@v5
52+
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5
5353
with:
5454
configuration-path: .github/labeler.yaml
5555
sync-labels: true

.github/workflows/welcome-bot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
steps:
1616
- name: Generate GitHub App token
1717
id: generate_token
18-
uses: tibdex/[email protected]
18+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
1919
with:
2020
app_id: ${{ secrets.BOT_APP_ID }}
2121
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
2222

23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
- name: Convert Repository Name to Title Case
2525
id: convert_repo_name
2626
run: |

0 commit comments

Comments
 (0)