Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/dependabot-auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ jobs:
github.repository == 'mongodb/atlas-local-lib' &&
github.event.pull_request.user.login == 'dependabot[bot]'
steps:
- name: Set Apix Bot token
id: app-token
uses: mongodb/apix-action/token@6c3fde402c21942fa46cde003f190c2b23c59530
with:
app-id: ${{ secrets.APIXBOT_APP_ID }}
private-key: ${{ secrets.APIXBOT_APP_PEM }}

- name: Checkout PR
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ steps.app-token.outputs.token }}
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

Expand Down Expand Up @@ -56,8 +63,8 @@ jobs:

# Check if there are changes to commit
if ! git diff --quiet LICENSE-3RD-PARTY.txt; then
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git config --local user.email "${{ steps.app-token.outputs.user-email }}"
git config --local user.name "${{ steps.app-token.outputs.user-name }}"
git add LICENSE-3RD-PARTY.txt
git commit -m "chore(deps): update LICENSE-3RD-PARTY.txt"
git push
Expand All @@ -71,11 +78,11 @@ jobs:
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}

- name: Enable auto-merge for Dependabot PR
if: steps.metadata.outputs.update-type == 'version-update:semver-patch' || steps.metadata.outputs.update-type == 'version-update:semver-minor' || contains(steps.metadata.outputs.dependency-names, 'security') || steps.metadata.outputs.package-ecosystem == 'github_actions'
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.app-token.outputs.token }}
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion LICENSE-3RD-PARTY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3427,7 +3427,7 @@ limitations under the License.
- proc-macro2 1.0.101 (https://github.com/dtolnay/proc-macro2)
- quote 1.0.40 (https://github.com/dtolnay/quote)
- r-efi 5.3.0 (https://github.com/r-efi/r-efi)
- rand 0.10.0 (https://github.com/rust-random/rand)
- rand 0.10.1 (https://github.com/rust-random/rand)
- rustversion 1.0.22 (https://github.com/dtolnay/rustversion)
- ryu 1.0.20 (https://github.com/dtolnay/ryu)
- semver 1.0.27 (https://github.com/dtolnay/semver)
Expand Down
Loading