Skip to content

Commit 4f0cf4d

Browse files
Pin CI actions (#92)
* pin ci actions * [skip ci] update changelog * trigger build --------- Co-authored-by: Sebastian Stenzel <sebastian.stenzel@gmail.com>
1 parent 1b1c313 commit 4f0cf4d

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ jobs:
1717
outputs:
1818
sha256: ${{ steps.checksums.outputs.sha256 }}
1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2121
with:
2222
fetch-depth: 0 # deep fetch for better sonarcloud analysis
23-
- uses: actions/setup-java@v5
23+
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
2424
with:
2525
distribution: 'temurin'
2626
java-version: ${{ env.JAVA_VERSION }}
2727
cache: 'maven'
2828
- name: Cache SonarCloud packages
29-
uses: actions/cache@v5
29+
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
3030
with:
3131
path: ~/.sonar/cache
3232
key: ${{ runner.os }}-sonar
@@ -56,12 +56,12 @@ jobs:
5656
} >> $GITHUB_OUTPUT
5757
- name: Attest
5858
if: startsWith(github.ref, 'refs/tags/')
59-
uses: actions/attest-build-provenance@v3
59+
uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0
6060
with:
6161
subject-path: |
6262
target/*.jar
6363
target/*.pom
64-
- uses: actions/upload-artifact@v6
64+
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
6565
with:
6666
name: artifacts
6767
path: target/*.jar
@@ -75,8 +75,8 @@ jobs:
7575
needs: [build]
7676
if: github.repository_owner == 'cryptomator' && (startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[deploy]'))
7777
steps:
78-
- uses: actions/checkout@v6
79-
- uses: actions/setup-java@v5
78+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
79+
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
8080
with:
8181
distribution: 'temurin'
8282
java-version: ${{ env.JAVA_VERSION }}
@@ -111,8 +111,8 @@ jobs:
111111
needs: [build]
112112
if: github.repository_owner == 'cryptomator' && (startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[deploy]'))
113113
steps:
114-
- uses: actions/checkout@v6
115-
- uses: actions/setup-java@v5
114+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
115+
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
116116
with:
117117
java-version: ${{ env.JAVA_VERSION }}
118118
distribution: 'temurin'
@@ -142,7 +142,7 @@ jobs:
142142
if: startsWith(github.ref, 'refs/tags/')
143143
steps:
144144
- name: Create Release
145-
uses: softprops/action-gh-release@v2
145+
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0
146146
with:
147147
prerelease: true
148148
token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,16 @@ jobs:
1818
contents: read
1919
security-events: write
2020
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v6
21+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2322
with:
2423
fetch-depth: 2
25-
- name: Set up Java
26-
uses: actions/setup-java@v5
24+
- uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0
2725
with:
2826
java-version: 21
2927
distribution: 'temurin'
3028
cache: 'maven'
3129
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v4
30+
uses: github/codeql-action/init@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9
3331
with:
3432
languages: java
3533
config: |
@@ -38,6 +36,6 @@ jobs:
3836
- name: Build
3937
run: ./mvnw -B install -DskipTests
4038
- name: Perform CodeQL Analysis
41-
uses: github/codeql-action/analyze@v4
39+
uses: github/codeql-action/analyze@5d4e8d1aca955e8d8589aabd499c5cae939e33c7 # v4.31.9
4240
with:
4341
category: "/language:java"

.github/workflows/dependency-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
check-dependencies:
14-
uses: skymatic/workflows/.github/workflows/run-dependency-check.yml@v3
14+
uses: skymatic/workflows/.github/workflows/run-dependency-check.yml@2d0c27a7b04c605afe1ca85e37c0e86517defcc9 # v3.0.2
1515
with:
1616
java-version: 21
1717
secrets:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2525
- simplify build by removing `maven-shade-plugin`
2626
- update test dependencies
2727
- update build plugins
28+
- Pin CI actions ([#92](https://github.com/cryptomator/siv-mode/pull/92))
2829

2930
### Deprecated
3031
- old low-level API:

0 commit comments

Comments
 (0)