-
Notifications
You must be signed in to change notification settings - Fork 5
Upgrade Gradle to 9.5.1 and Ballerina Gradle plugin to 4.0.0 #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,46 +1,11 @@ | ||||||||
| name: PR build | ||||||||
|
|
||||||||
| on: | ||||||||
| pull_request | ||||||||
| pull_request: | ||||||||
|
|
||||||||
| jobs: | ||||||||
| ubuntu-build: | ||||||||
|
|
||||||||
| runs-on: ubuntu-latest | ||||||||
|
|
||||||||
| steps: | ||||||||
| - uses: actions/checkout@v3 | ||||||||
| - name: Set up JDK 21 | ||||||||
| uses: actions/setup-java@v3 | ||||||||
| with: | ||||||||
| distribution: 'temurin' | ||||||||
| java-version: 21.0.3 | ||||||||
| - name: Build with Gradle | ||||||||
| env: | ||||||||
| packageUser: ${{ github.actor }} | ||||||||
| packagePAT: ${{ secrets.GITHUB_TOKEN }} | ||||||||
| run: | | ||||||||
| ./gradlew build --stacktrace --scan --console=plain --no-daemon | ||||||||
| - name: Generate CodeCov Report | ||||||||
| uses: codecov/codecov-action@v5 | ||||||||
| with: | ||||||||
| token: ${{ secrets.CODECOV_TOKEN }} | ||||||||
| slug: ballerina-platform/copybook-tools | ||||||||
|
|
||||||||
| windows-build: | ||||||||
|
|
||||||||
| runs-on: windows-latest | ||||||||
|
|
||||||||
| steps: | ||||||||
| - uses: actions/checkout@v3 | ||||||||
| - name: Set up JDK 21 | ||||||||
| uses: actions/setup-java@v3 | ||||||||
| with: | ||||||||
| distribution: 'temurin' | ||||||||
| java-version: 21.0.3 | ||||||||
| - name: Build with Gradle | ||||||||
| env: | ||||||||
| packageUser: ${{ github.actor }} | ||||||||
| packagePAT: ${{ secrets.GITHUB_TOKEN }} | ||||||||
| JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 | ||||||||
| run: ./gradlew.bat build -Pdisable=invalid_permission --stacktrace --scan --console=plain --no-daemon | ||||||||
| call_workflow: | ||||||||
| name: Run PR Build Workflow | ||||||||
| if: ${{ github.repository_owner == 'ballerina-platform' }} | ||||||||
| uses: ballerina-platform/ballerina-library/.github/workflows/pull-request-build-template.yml@main | ||||||||
| secrets: inherit | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟠 Major | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- caller ---'
sed -n '1,80p' .github/workflows/pull-request.yml
printf '%s\n' '--- called workflow ---'
sed -n '1,220p' .github/workflows/build-timestamp-master-template.yml
printf '%s\n' '--- reusable workflow declarations and secret references ---'
rg -n 'workflow_call|secrets:|secrets\.|secret' .github/workflows/build-timestamp-master-template.yml .github/workflowsRepository: ballerina-platform/copybook-tools Length of output: 585 🏁 Script executed: #!/bin/bash
set -eu
url='https://raw.githubusercontent.com/ballerina-platform/ballerina-library/main/.github/workflows/pull-request-build-template.yml'
curl -fsSL "$url" | sed -n '1,260p'Repository: ballerina-platform/copybook-tools Length of output: 3248 Sensitive Data Exposure Reachability: External Pass only The called workflow declares only Suggested change- secrets: inherit
+ secrets:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}📝 Committable suggestion
Suggested change
🧰 Tools🪛 zizmor (1.29.0)[warning] 7-12: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.5.1-bin.zip | ||
| networkTimeout=10000 | ||
| validateDistributionUrl=true | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionSha256Sum=bafc141b619ad6350fd975fc903156dd5c151998cc8b058e8c1044ab5f7b031f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟠 Major | 🏗️ Heavy lift
🧩 Analysis chain
🏁 Script executed:
Repository: ballerina-platform/copybook-tools
Length of output: 823
🏁 Script executed:
Repository: ballerina-platform/copybook-tools
Length of output: 961
Security Misconfiguration
Exploitability: Difficult
CWE: CWE-829 — Inclusion of Functionality from Untrusted Control Sphere
Pin the reusable workflow to a commit SHA.
@mainallows upstream changes to alter code executed in this repository's PR builds. Use a full commit SHA and update it through a reviewed dependency update.🧰 Tools
🪛 zizmor (1.29.0)
[warning] 7-12: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block
(excessive-permissions)
[warning] 10-10: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow
(secrets-inherit)
🤖 Prompt for AI Agents
Source: Linters/SAST tools