-
Notifications
You must be signed in to change notification settings - Fork 323
fix(deps): resolve all 26 open Dependabot security alerts + enable automation #734
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 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,104 @@ | ||
| # To get started with Dependabot version updates, you'll need to specify which | ||
| # package ecosystems to update and where the package manifests are located. | ||
| # Please see the documentation for all configuration options: | ||
| # https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
| # Dependabot configuration for Foundry-Local. | ||
| # Enables weekly version updates across all package ecosystems in the repo. | ||
| # Security updates are managed separately in repository settings | ||
| # (Settings -> Code security -> Dependabot security updates). | ||
| # | ||
| # Docs: https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
|
||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: "" # See documentation for possible values | ||
| directory: "/" # Location of package manifests | ||
| # ----- GitHub Actions ----- | ||
| - package-ecosystem: github-actions | ||
| directory: / | ||
| schedule: | ||
| interval: "weekly" | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - dependencies | ||
| - github-actions | ||
|
|
||
| # ----- npm: SDKs + website ----- | ||
| - package-ecosystem: npm | ||
| directories: | ||
| - /sdk/js | ||
| - /sdk_legacy/js | ||
| - /www | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - dependencies | ||
| - javascript | ||
|
|
||
| # ----- npm: JS samples ----- | ||
| - package-ecosystem: npm | ||
| directories: | ||
| - /samples/js/audio-transcription-example | ||
| - /samples/js/chat-and-audio-foundry-local | ||
| - /samples/js/copilot-sdk-foundry-local | ||
| - /samples/js/electron-chat-application | ||
| - /samples/js/embeddings | ||
| - /samples/js/langchain-integration-example | ||
| - /samples/js/live-audio-transcription | ||
| - /samples/js/native-chat-completions | ||
| - /samples/js/tool-calling-foundry-local | ||
| - /samples/js/tutorial-chat-assistant | ||
| - /samples/js/tutorial-document-summarizer | ||
| - /samples/js/tutorial-tool-calling | ||
| - /samples/js/tutorial-voice-to-text | ||
| - /samples/js/verify-winml | ||
| - /samples/js/web-server-example | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - dependencies | ||
| - javascript | ||
| - samples | ||
|
|
||
| # ----- Python: SDK + samples ----- | ||
| - package-ecosystem: pip | ||
| directories: | ||
| - /sdk/python | ||
| - /samples/python/audio-transcription | ||
| - /samples/python/embeddings | ||
| - /samples/python/langchain-integration | ||
| - /samples/python/live-audio-transcription | ||
| - /samples/python/native-chat-completions | ||
| - /samples/python/tool-calling | ||
| - /samples/python/tutorial-chat-assistant | ||
| - /samples/python/tutorial-document-summarizer | ||
| - /samples/python/tutorial-tool-calling | ||
| - /samples/python/tutorial-voice-to-text | ||
| - /samples/python/verify-winml | ||
| - /samples/python/web-server | ||
| - /samples/python/web-server-responses | ||
| - /samples/python/web-server-responses-vision | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - dependencies | ||
| - python | ||
|
|
||
| # ----- .NET / NuGet: SDK ----- | ||
| - package-ecosystem: nuget | ||
| directories: | ||
| - /sdk/cs/src | ||
| - /sdk/cs/test | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - dependencies | ||
| - dotnet | ||
|
|
||
| # ----- Rust: SDK ----- | ||
| - package-ecosystem: cargo | ||
| directory: /sdk/rust | ||
| schedule: | ||
| interval: weekly | ||
| open-pull-requests-limit: 10 | ||
| labels: | ||
| - dependencies | ||
| - rust |
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,55 @@ | ||
| # Auto-merge Dependabot PRs. | ||
| # | ||
| # Behavior: | ||
| # - Security updates of any semver level: auto-approve + enable auto-merge (squash). | ||
| # - Non-security patch / minor updates: auto-approve + enable auto-merge. | ||
| # - Major version bumps: only auto-approve; a human reviewer must merge. | ||
| # | ||
| # Requirements (enable in repo settings if not already): | ||
| # - Settings -> General -> "Allow auto-merge" | ||
| # - Settings -> Code security -> "Dependabot security updates" = enabled | ||
| # - A branch protection rule on the default branch with required status checks | ||
| # so auto-merge waits for CI to pass before merging. | ||
| # | ||
| # Docs: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions | ||
|
|
||
| name: Dependabot auto-merge | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, ready_for_review] | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| dependabot: | ||
| runs-on: ubuntu-latest | ||
| if: github.actor == 'dependabot[bot]' | ||
| steps: | ||
| - name: Fetch Dependabot metadata | ||
| id: meta | ||
| uses: dependabot/fetch-metadata@v2 | ||
| with: | ||
| github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Approve PR | ||
| run: gh pr review --approve "$PR_URL" | ||
| env: | ||
| PR_URL: ${{ github.event.pull_request.html_url }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Enable auto-merge for security updates | ||
| if: steps.meta.outputs.alert-state == 'AUTO_DISMISSED' || steps.meta.outputs.ghsa-id != '' | ||
| run: gh pr merge --auto --squash "$PR_URL" | ||
| env: | ||
| PR_URL: ${{ github.event.pull_request.html_url }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Enable auto-merge for patch/minor version updates | ||
| if: steps.meta.outputs.update-type == 'version-update:semver-patch' || steps.meta.outputs.update-type == 'version-update:semver-minor' | ||
| run: gh pr merge --auto --squash "$PR_URL" | ||
|
MaanavD marked this conversation as resolved.
Outdated
|
||
| env: | ||
| PR_URL: ${{ github.event.pull_request.html_url }} | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
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 |
|---|---|---|
|
|
@@ -16,6 +16,6 @@ | |
| "foundry-local-sdk-winml": "latest" | ||
| }, | ||
| "devDependencies": { | ||
| "electron": "^34.5.8" | ||
| "electron": "^39.8.5" | ||
| } | ||
| } | ||
| } | ||
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.