File tree 3 files changed +57
-14
lines changed
3 files changed +57
-14
lines changed Original file line number Diff line number Diff line change 23
23
spotless :
24
24
runs-on : ubuntu-latest
25
25
steps :
26
- - uses : actions/checkout@v4
26
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27
27
- name : Set up JDK 17
28
- uses : actions/setup-java@v4
28
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
29
29
with :
30
30
distribution : temurin
31
31
java-version : 17
@@ -35,19 +35,19 @@ jobs:
35
35
build :
36
36
runs-on : macos-14
37
37
steps :
38
- - uses : actions/checkout@v4
38
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
39
39
with :
40
40
ref : ${{ github.ref }}
41
41
- name : Set up JDK 17
42
- uses : actions/setup-java@v4
42
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
43
43
with :
44
44
distribution : temurin
45
45
java-version : 17
46
46
- name : Build with Gradle
47
47
run : ./gradlew build
48
48
- name : Archive build artifacts
49
49
if : github.ref == 'refs/heads/main'
50
- uses : actions/upload-artifact@v4
50
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
51
51
with :
52
52
name : kase64_build
53
53
path : |
@@ -66,11 +66,11 @@ jobs:
66
66
SONATYPE_GPG_KEY : ${{ secrets.SONATYPE_GPG_KEY }}
67
67
SONATYPE_GPG_KEY_PASSWORD : ${{ secrets.SONATYPE_GPG_KEY_PASSWORD }}
68
68
steps :
69
- - uses : actions/checkout@v4
69
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
70
70
with :
71
71
ref : ${{ github.ref }}
72
72
- name : Set up JDK 17
73
- uses : actions/setup-java@v4
73
+ uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
74
74
with :
75
75
distribution : temurin
76
76
java-version : 17
Original file line number Diff line number Diff line change
1
+ name : OSSF Scorecard
2
+ on :
3
+ # For Branch-Protection check. Only the default branch is supported. See
4
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5
+ branch_protection_rule :
6
+ # To guarantee, Maintained check is occasionally updated. See
7
+ # https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
8
+ schedule :
9
+ - cron : ' 30 14 * * 6'
10
+ push :
11
+ branches : [ "main" ]
12
+
13
+ permissions : read-all
14
+
15
+ jobs :
16
+ analysis :
17
+ name : Scorecard analysis
18
+ runs-on : ubuntu-latest
19
+ permissions :
20
+ security-events : write
21
+ id-token : write
22
+
23
+ steps :
24
+ - name : " Checkout code"
25
+ uses : actions/checkout@4
26
+ with :
27
+ persist-credentials : false
28
+ - name : " Run analysis"
29
+ uses : ossf/scorecard-action@2
30
+ with :
31
+ results_file : results.sarif
32
+ results_format : sarif
33
+ publish_results : true
34
+ - name : " Upload artifact"
35
+ uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
36
+ with :
37
+ name : SARIF file
38
+ path : results.sarif
39
+ retention-days : 5
40
+ - name : " Upload to code-scanning"
41
+ uses : github/codeql-action/upload-sarif@v3
42
+ with :
43
+ sarif_file : results.sarif
Original file line number Diff line number Diff line change @@ -12,22 +12,22 @@ jobs:
12
12
security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v4
16
- - name : Setup Python 3.11
15
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
16
+ - name : Setup Python 3.13
17
17
uses : actions/setup-python@v4
18
18
with :
19
- python-version : ' 3.11 '
19
+ python-version : ' 3.13 '
20
20
- name : Run mobsfscan
21
- uses : MobSF/mobsfscan@0.3.4
21
+ uses : MobSF/mobsfscan@0.4.5
22
22
with :
23
23
args : . --sarif --output results.sarif || true
24
24
- name : Upload mobsfscan report
25
- uses : github/codeql-action/upload-sarif@v2
25
+ uses : github/codeql-action/upload-sarif@v3
26
26
with :
27
27
sarif_file : results.sarif
28
28
29
29
gradle-validate :
30
30
runs-on : ubuntu-latest
31
31
steps :
32
- - uses : actions/checkout@v4
33
- - uses : gradle/wrapper-validation-action@v1
32
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33
+ - uses : gradle/actions/ wrapper-validation@v4
You can’t perform that action at this time.
0 commit comments