File tree Expand file tree Collapse file tree 5 files changed +46
-49
lines changed
Expand file tree Collapse file tree 5 files changed +46
-49
lines changed Original file line number Diff line number Diff line change 88 build-and-publish :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v4
12- - name : Set up JDK 11
13- uses : actions/setup-java@v4
14- with :
15- distribution : ' temurin'
16- java-version : ' 11'
17- - name : Build with Gradle
18- env :
19- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
20- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
21- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
22- ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.SIGNING_KEY_ID }}
23- ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
24- run : ./gradlew build publish
25-
11+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # pin@v4
12+ - name : Set up JDK 11
13+ uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # pin@v4
14+ with :
15+ distribution : ' temurin'
16+ java-version : ' 11'
17+ - name : Build with Gradle
18+ env :
19+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
20+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
21+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
22+ ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.SIGNING_KEY_ID }}
23+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
24+ run : ./gradlew build publish
Original file line number Diff line number Diff line change 99 build-and-publish :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v4
13- - name : Set up JDK 11
14- uses : actions/setup-java@v4
15- with :
16- distribution : ' temurin'
17- java-version : ' 11'
18- - name : Build with Gradle
19- env :
20- SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
21- SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
22- ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
23- ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.SIGNING_KEY_ID }}
24- ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
25- run : ./gradlew build publish -Prelease=true
26-
12+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # pin@v4
13+ - name : Set up JDK 11
14+ uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # pin@v4
15+ with :
16+ distribution : ' temurin'
17+ java-version : ' 11'
18+ - name : Build with Gradle
19+ env :
20+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
21+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
22+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.SIGNING_KEY }}
23+ ORG_GRADLE_PROJECT_signingKeyId : ${{ secrets.SIGNING_KEY_ID }}
24+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.SIGNING_PASSWORD }}
25+ run : ./gradlew build publish -Prelease=true
Original file line number Diff line number Diff line change 88 build :
99 runs-on : ubuntu-latest
1010 steps :
11- - uses : actions/checkout@v4
12- - name : Set up JDK 11
13- uses : actions/setup-java@v4
14- with :
15- distribution : ' temurin'
16- java-version : ' 11'
17- - name : Check formatting
18- run : ./gradlew verifyGoogleJavaFormat
19- - name : Check build and test
20- run : ./gradlew check javadoc
21-
11+ - uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # pin@v4
12+ - name : Set up JDK 11
13+ uses : actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # pin@v4
14+ with :
15+ distribution : ' temurin'
16+ java-version : ' 11'
17+ - name : Check formatting
18+ run : ./gradlew verifyGoogleJavaFormat
19+ - name : Check build and test
20+ run : ./gradlew check javadoc
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ name: Repolinter Action
66# Currently there is no elegant way to specify the default
77# branch in the event filtering, so branches are instead
88# filtered in the "Test Default Branch" step.
9- on : [push, workflow_dispatch]
9+ on : [ push, workflow_dispatch ]
1010
1111jobs :
1212 repolint :
@@ -15,17 +15,17 @@ jobs:
1515 steps :
1616 - name : Test Default Branch
1717 id : default-branch
18- uses : actions/github-script@v7
18+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # pin@ v7
1919 with :
2020 script : |
2121 const data = await github.rest.repos.get(context.repo)
2222 return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
2323 - name : Checkout Self
2424 if : ${{ steps.default-branch.outputs.result == 'true' }}
25- uses : actions/checkout@v4
25+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # pin@ v4
2626 - name : Run Repolinter
2727 if : ${{ steps.default-branch.outputs.result == 'true' }}
28- uses : newrelic/repolinter-action@v1
28+ uses : newrelic/repolinter-action@3f4448f855c351e9695b24524a4111c7847b84cb # pin@ v1
2929 with :
3030 config_url : https://raw.githubusercontent.com/newrelic/.github/main/repolinter-rulesets/community-project.yml
3131 output_type : issue
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ name: Snyk Vulnerability Scan
44on :
55 workflow_dispatch :
66 schedule :
7- - cron : ' 00 15 * * 1'
7+ - cron : ' 00 15 * * 1'
88 push :
99 branches :
1010 - main
@@ -14,12 +14,12 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - name : Checkout Code
17- uses : actions/checkout@v4
17+ uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # pin@ v4
1818 with :
1919 ref : ' main'
20-
20+
2121 - name : Run Snyk To Check For Vulnerabilities
22- uses : snyk/actions/gradle-jdk11@master
22+ uses : snyk/actions/gradle-jdk11@8349f9043a8b7f0f3ee8885bf28f0b388d2446e8 # pin@ master
2323 env :
2424 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
2525 with :
You can’t perform that action at this time.
0 commit comments