Skip to content

Commit 5bdfe75

Browse files
committed
Improved CI security and cleaned up github yml files
1 parent 96462c6 commit 5bdfe75

File tree

3 files changed

+27
-24
lines changed

3 files changed

+27
-24
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ko_fi: rk_01
1+
ko_fi: "rk_01"

.github/dependabot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
version: 2
22
registries:
33
maven-central:
4-
type: maven-repository
4+
type: "maven-repository"
55
url: "https://repo.maven.apache.org/maven2/"
66
viaversion-maven:
7-
type: maven-repository
7+
type: "maven-repository"
88
url: "https://repo.viaversion.com/"
99
updates:
1010
- package-ecosystem: "gradle"
1111
directory: "/"
1212
schedule:
1313
interval: "daily"
1414
registries:
15-
- maven-central
16-
- viaversion-maven
15+
- "maven-central"
16+
- "viaversion-maven"
1717
- package-ecosystem: "github-actions"
1818
directory: "/"
1919
schedule:
20-
interval: "weekly"
20+
interval: "daily"

.github/workflows/build.yml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
name: build
2-
on: [push, pull_request, workflow_dispatch]
1+
name: "Build"
2+
on: ["push", "pull_request", "workflow_dispatch"]
3+
4+
permissions:
5+
contents: "read"
36

47
jobs:
58
build:
6-
runs-on: ubuntu-24.04
7-
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
9+
runs-on: "ubuntu-24.04"
10+
if: "${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}"
811
steps:
9-
- name: Checkout Repository
10-
uses: actions/checkout@v6
12+
- name: "Checkout repository"
13+
uses: "actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3" # v6.0.0
1114
with:
1215
persist-credentials: false
13-
- name: Validate Gradle Wrapper
14-
uses: gradle/actions/wrapper-validation@v5
15-
- name: Set up JDK 21
16-
uses: actions/setup-java@v5
16+
- name: "Set up Gradle"
17+
uses: "gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2" # v5.0.0
18+
- name: "Set up Java 25"
19+
uses: "actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165" # v5.0.0
1720
with:
18-
distribution: temurin
19-
java-version: 21
21+
distribution: "temurin"
22+
java-version: 25
2023
check-latest: true
21-
- name: Build with Gradle
22-
run: ./gradlew build
23-
- name: Upload Artifacts to GitHub
24-
uses: actions/upload-artifact@v5
24+
- name: "Build with Gradle"
25+
run: "./gradlew build"
26+
- name: "Upload artifacts to GitHub"
27+
uses: "actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4" # v5.0.0
2528
with:
26-
name: Artifacts
27-
path: build/libs/
29+
name: "Artifacts"
30+
path: "build/libs/"

0 commit comments

Comments
 (0)