-
Notifications
You must be signed in to change notification settings - Fork 131
release: 6.0.0-beta.2 #2710
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
stainless-app
wants to merge
7
commits into
main
from
release-please--branches--main--changes--next--components--cloudflare
Closed
release: 6.0.0-beta.2 #2710
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
dac4aa5
feat: feat(fraud): public docs for fraud API
stainless-app[bot] 214a016
codegen metadata
stainless-app[bot] cb76fc9
chore(internal): codegen related update
stainless-app[bot] 89f79e9
feat: refactor(terraform): restructure origin_tls_client_auth to peer…
stainless-app[bot] 9fdc3c0
codegen metadata
stainless-app[bot] ffa2c6c
chore(api): update composite API spec
stainless-app[bot] f251327
release: 6.0.0-beta.2
stainless-app[bot] 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
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
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,36 @@ | ||
| name: CI | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - next | ||
|
|
||
| jobs: | ||
| detect_breaking_changes: | ||
| runs-on: 'ubuntu-latest' | ||
| name: detect-breaking-changes | ||
| if: github.repository == 'cloudflare/cloudflare-typescript' | ||
| steps: | ||
| - name: Calculate fetch-depth | ||
| run: | | ||
| echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV | ||
|
|
||
| - uses: actions/checkout@v6 | ||
| with: | ||
| # Ensure we can check out the pull request base in the script below. | ||
| fetch-depth: ${{ env.FETCH_DEPTH }} | ||
|
|
||
| - name: Set up Node | ||
| uses: actions/setup-node@v3 | ||
| with: | ||
| node-version: '20' | ||
| - name: Install dependencies | ||
| run: | | ||
| yarn install | ||
|
|
||
| - name: Detect breaking changes | ||
| run: | | ||
| # Try to check out previous versions of the breaking change detection script. This ensures that | ||
| # we still detect breaking changes when entire files and their tests are removed. | ||
| git checkout "${{ github.event.pull_request.base.sha }}" -- ./scripts/detect-breaking-changes 2>/dev/null || true | ||
| ./scripts/detect-breaking-changes ${{ github.event.pull_request.base.sha }} | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| { | ||
| ".": "6.0.0-beta.1" | ||
| ".": "6.0.0-beta.2" | ||
| } |
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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| configured_endpoints: 1995 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28b84a5db03b38290dfe7ef1de2c68feb68762d7a8f207bdbea4d39a7aeef1ea.yml | ||
| openapi_spec_hash: ba6bd61621e4be20b581f4f3bf0978d3 | ||
| config_hash: 07dfb48a768bfdcfd417ec643bab23f5 | ||
| configured_endpoints: 1996 | ||
| openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c0d713a413cf8be82c2ba4c521c453a128f1bdc4038355f2a8176369f152c2f4.yml | ||
| openapi_spec_hash: 9b9b440902b29ee45ad21b9a22c24c40 | ||
| config_hash: d1101915de2a8b526a1fe20a9f7314ca |
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 3 months ago
In general, the fix is to explicitly set a
permissionsblock in the workflow (either at the top level or for the affected job) so that the GITHUB_TOKEN is granted only the scopes required. Since this job only checks out code and runs local scripts, it only needs read access to repository contents and does not appear to require any write scopes or additional permissions.The best, non-breaking fix is to add a top-level
permissionssection right under the workflowname:(or underon:) specifyingcontents: read. This will apply to all jobs that do not override permissions (in this file, there is onlydetect_breaking_changes). No existing steps require write access to contents, issues, or pull requests, andactions/checkoutworks correctly withcontents: read. No other files or imports are involved, and no functional behavior of the job changes apart from tightening the token’s permissions.Concretely:
.github/workflows/detect-breaking-changes.yml.name: CI) so that it clearly applies at the workflow level.