Skip to content

Commit c861bdc

Browse files
committed
add gradle wrapper validation
1 parent dab3aca commit c861bdc

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ jobs:
173173
- name: build javadoc
174174
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' && github.ref == 'refs/heads/main'
175175
run: ./gradlew alljavadoc
176-
dependency-submission:
177-
permissions:
178-
contents: write
179-
runs-on: ubuntu-latest
180-
steps:
181-
- name: Checkout sources
182-
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
183-
- name: Generate and submit dependency graph
184-
uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3
176+
# dependency-submission:
177+
# permissions:
178+
# contents: write
179+
# runs-on: ubuntu-latest
180+
# steps:
181+
# - name: Checkout sources
182+
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
183+
# - name: Generate and submit dependency graph
184+
# uses: gradle/actions/dependency-submission@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3

.github/workflows/codeql.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
schedule:
2020
- cron: '37 10 * * 6'
2121

22+
# Declare default permissions as read only.
23+
permissions: read-all
24+
2225
jobs:
2326
analyze:
2427
name: Analyze
@@ -47,6 +50,8 @@ jobs:
4750
- name: Checkout repository
4851
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
4952

53+
- uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92 # v2.1.2
54+
5055
# Initializes the CodeQL tools for scanning.
5156
- name: Initialize CodeQL
5257
uses: github/codeql-action/init@1b1aada464948af03b950897e5eb522f92603cc2 # v3

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
distribution: 'temurin'
5555
java-version: '17'
5656

57+
- uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92 # v2.1.2
58+
5759
- name: Setup Graphviz
5860
uses: ts-graphviz/setup-graphviz@d5b2b6b67007094b256f3fd2fa6cf0ac41ceef25 # v2.0.0
5961

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ jobs:
4545
update_readme:
4646
runs-on: ubuntu-latest
4747

48-
permissions:
49-
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
50-
5148
needs: [release_tag]
5249
if: startsWith( github.ref, 'refs/tags/')
5350

@@ -108,9 +105,6 @@ jobs:
108105
docs:
109106
name: Build and release docs
110107

111-
permissions:
112-
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
113-
114108
runs-on: ubuntu-latest
115109
needs: [release_tag]
116110
if: startsWith( github.ref, 'refs/tags/')

.github/workflows/scorecard.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
with:
3737
persist-credentials: false
3838

39+
- uses: gradle/wrapper-validation-action@b231772637bb498f11fdbc86052b6e8a8dc9fc92 # v2.1.2
40+
3941
- name: "Run analysis"
4042
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
4143
with:

0 commit comments

Comments
 (0)