Skip to content

Commit a41b2d4

Browse files
authored
Mitigate security vulnerabilities in CI. (#943)
1 parent 9dd37e0 commit a41b2d4

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
version: 2
22
updates:
33
- package-ecosystem: "gradle"
4+
cooldown:
5+
default-days: 7
46
directory: "/"
57
schedule:
68
interval: "daily"
79
- package-ecosystem: "github-actions"
10+
cooldown:
11+
default-days: 7
812
directory: "/"
913
schedule:
1014
interval: "weekly"

.github/workflows/build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
name: Build
2-
on: [ pull_request, push, workflow_dispatch ]
2+
on: [pull_request, push, workflow_dispatch]
3+
permissions:
4+
contents: read
35

46
jobs:
57
build:
6-
runs-on: ubuntu-24.04
8+
runs-on: ubuntu-24.04-arm
79
steps:
810
- name: Checkout Repository
9-
uses: actions/checkout@v5
11+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
1012
with:
1113
persist-credentials: false
1214
- name: Set up Gradle
13-
uses: gradle/actions/setup-gradle@v5
15+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # 5.0.0
1416
- name: Set up JDK 21
15-
uses: actions/setup-java@v5
17+
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # 5.0.0
1618
with:
1719
distribution: 'temurin'
1820
java-version: 21
1921
check-latest: true
2022
- name: Build with Gradle
2123
run: ./gradlew build
2224
- name: Upload Artifacts to GitHub
23-
uses: actions/upload-artifact@v5
25+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # 5.0.0
2426
with:
2527
name: Artifacts
26-
path: build/libs/
28+
path: build/libs/

.github/workflows/sync-crowdin.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
synchronize-with-crowdin:
9-
runs-on: ubuntu-24.04
13+
runs-on: ubuntu-24.04-arm
1014
steps:
1115
- name: Checkout Repository
12-
uses: actions/checkout@v5
16+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0
1317
with:
1418
persist-credentials: false
1519
- name: Crowdin Sync
16-
uses: crowdin/github-action@v2
20+
uses: crowdin/github-action@08713f00a50548bfe39b37e8f44afb53e7a802d4 # 2.12.0
1721
with:
1822
config: .github/crowdin.yml
1923
upload_sources: true
@@ -27,4 +31,4 @@ jobs:
2731
env:
2832
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2933
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
30-
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
34+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)