name: Dependabot Automerge on: pull_request_target: types: [opened, synchronize, reopened] permissions: pull-requests: write contents: write checks: read jobs: security-scan: name: Security Vulnerability Scan if: ${{ github.actor == 'dependabot[bot]' }} uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@b00f71e051ddddc6e46a193c31c8c0bf283bf9e6" # v2.1.0 with: scan-args: |- -r --skip-git --lockfile=pnpm-lock.yaml --lockfile=src-tauri/Cargo.lock --lockfile=nodecar/pnpm-lock.yaml ./ permissions: security-events: write contents: read actions: read lint-js: name: Lint JavaScript/TypeScript if: ${{ github.actor == 'dependabot[bot]' }} uses: ./.github/workflows/lint-js.yml secrets: inherit permissions: contents: read lint-rust: name: Lint Rust if: ${{ github.actor == 'dependabot[bot]' }} uses: ./.github/workflows/lint-rs.yml secrets: inherit permissions: contents: read codeql: name: CodeQL uses: ./.github/workflows/codeql.yml secrets: inherit permissions: security-events: write contents: read packages: read actions: read spellcheck: name: Spell Check uses: ./.github/workflows/spellcheck.yml secrets: inherit permissions: contents: read dependabot-automerge: name: Dependabot Automerge if: ${{ github.actor == 'dependabot[bot]' }} needs: [security-scan, lint-js, lint-rust, codeql, spellcheck] runs-on: ubuntu-latest steps: - name: Dependabot metadata id: metadata uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b #v2.4.0 with: compat-lookup: true github-token: "${{ secrets.GITHUB_TOKEN }}" - name: Auto-merge minor and patch updates uses: ridedott/merge-me-action@d288b479e76cb993344ca8b5e0fcaa7d6e667eed #v2.10.123 with: GITHUB_TOKEN: ${{ secrets.SECRET_DEPENDABOT_GITHUB_TOKEN }} MERGE_METHOD: SQUASH PRESET: DEPENDABOT_MINOR MAXIMUM_RETRIES: 5 timeout-minutes: 10