Skip to content

Commit 5c2e303

Browse files
authored
fix: hardens the release action (#42)
* hardens the release action * fixeS * bumps version
1 parent 765026f commit 5c2e303

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.github/workflows/publish-to-maven-central.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,24 @@ jobs:
1212
name: Release build and publish
1313
runs-on: macOS-latest
1414
steps:
15-
# 1. Checkout code
16-
- name: Check out code
17-
uses: actions/checkout@v4
15+
# 1. Harden Runner
16+
- name: Harden Runner
17+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
18+
with:
19+
egress-policy: audit
1820

19-
# 2. Set up JDK 21
21+
# 2. Checkout code
22+
- name: Check out code
23+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2024

25+
# 3. Set up JDK 21
2126
- name: Set up JDK 21
22-
uses: actions/setup-java@v4
27+
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00
2328
with:
2429
distribution: "zulu"
2530
java-version: 21
2631

27-
# 3. Publish to Maven Central
28-
32+
# 4. Publish to Maven Central
2933
- name: Publish to MavenCentral
3034
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
3135
env:

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
with:
2323
egress-policy: audit
2424

25-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
- name: Check out code
26+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2627
with:
2728
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
2829

android/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ plugins {
1111
id("org.sonarqube") version "4.4.1.3373"
1212
}
1313

14-
version = "1.0.2"
14+
version = "1.1.0"
1515
val groupId = "com.formbricks"
1616
val artifactId = "android"
1717

0 commit comments

Comments
 (0)