-
Notifications
You must be signed in to change notification settings - Fork 189
fix: Bump Bouncy Castle to fix CVE-2025-8916
#1453
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
Closed
Closed
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
e037c46
docs: Move docs to new directory
lukaszsocha2 2551e5a
chore: Add code formatter
lukaszsocha2 c7d50d5
feat: Add generated SDK (box/box-codegen#838) (#1438)
box-sdk-build e854db1
chore: Adjust build process (#1444)
lukaszsocha2 df832fd
chore: Bump Bouncy Castle to fix CVE-2025-8916
lukaszsocha2 eb9d40d
fix
lukaszsocha2 b82cdfd
chore: Bump Bouncy Castle to fix CVE-2025-8916 (#1452)
box-sdk-build 7eeabcf
Merge remote-tracking branch 'origin/combined-sdk' into bump-bouncy-c…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| { "engineHash": "724276f", "specHash": "1ed059a", "version": "0.1.0" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Autoupdate PR | ||
| on: | ||
| push: | ||
| branches: | ||
| - combined-sdk | ||
|
|
||
| jobs: | ||
| update_pull_requests: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| token: ${{ secrets.DISPATCH_ACCESS_TOKEN }} | ||
|
|
||
| - name: Set up Git | ||
| run: | | ||
| git config --global user.name 'box-sdk-build' | ||
| git config --global user.email 'box-sdk-build@box.com' | ||
|
|
||
| - name: Fetch all branches and tags | ||
| run: git fetch --prune --unshallow | ||
|
|
||
| - name: Auto update pull requests | ||
| run: | | ||
| PR_LIST=$(curl -s -H "Authorization: Bearer ${{ secrets.DISPATCH_ACCESS_TOKEN }}" "https://api.github.com/repos/$GITHUB_REPOSITORY/pulls?state=open" | jq -r '.[] | .head.ref') | ||
| for pr_branch in $PR_LIST; do | ||
| git checkout "$pr_branch" | ||
| if git merge origin/combined-sdk; then | ||
| git push | ||
| else | ||
| # Conflict occurred, resolve by keeping our changes | ||
| git checkout --ours . | ||
| git add . | ||
| git commit -m "Auto resolve conflict by keeping our changes" | ||
| git push | ||
| fi | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Integration tests sdk | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - combined-sdk | ||
| jobs: | ||
| core: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup Java | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| distribution: 'temurin' | ||
| java-version: '8' | ||
| - name: All Tests | ||
| if: startsWith(github.head_ref, 'codegen-release') | ||
| env: | ||
| JAVA_COLLABORATOR_ID: ${{ secrets.JAVA_COLLABORATOR_ID }} | ||
| JAVA_COLLABORATOR: ${{ secrets.JAVA_COLLABORATOR }} | ||
| JAVA_ENTERPRISE_ID: ${{ secrets.JAVA_ENTERPRISE_ID }} | ||
| JAVA_JWT_CONFIG: ${{ secrets.JAVA_JWT_CONFIG }} | ||
| JAVA_USER_ID: ${{ secrets.JAVA_USER_ID }} | ||
| run: ./gradlew integrationTest --stacktrace | ||
| - name: Smoke Tests | ||
| if: "!startsWith(github.head_ref, 'codegen-release')" | ||
| env: | ||
| JAVA_COLLABORATOR_ID: ${{ secrets.JAVA_COLLABORATOR_ID }} | ||
| JAVA_COLLABORATOR: ${{ secrets.JAVA_COLLABORATOR }} | ||
| JAVA_ENTERPRISE_ID: ${{ secrets.JAVA_ENTERPRISE_ID }} | ||
| JAVA_JWT_CONFIG: ${{ secrets.JAVA_JWT_CONFIG }} | ||
| JAVA_USER_ID: ${{ secrets.JAVA_USER_ID }} | ||
| run: ./gradlew smokeTest --stacktrace | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,8 @@ on: | |
| - opened | ||
| - edited | ||
| - synchronize | ||
| branches: | ||
| - combined-sdk | ||
|
|
||
| jobs: | ||
| main: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check warning
Code scanning / CodeQL
Workflow does not contain permissions Medium
Copilot Autofix
AI about 1 year ago
To fix this problem, add a
permissionsblock at the top level of the workflow YAML (i.e., beforejobs:). This restricts the default permissions granted to GITHUB_TOKEN for all jobs in the workflow that do not have their ownpermissionssection. Since the job does not require write access or special permissions, assigncontents: readas the default, which allows jobs only read access to repository contents. No other modifications are needed; simply insert the block immediately after the workflowname:or beforejobs:.