diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b85ff29..bfa04bd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,16 +1,20 @@ +# Dependabot will run on day 17 of each month at 02:15 (Europe/Berlin timezone) version: 2 updates: - - package-ecosystem: github-actions + + - package-ecosystem: "github-actions" directory: "/" schedule: - interval: monthly - time: "04:00" - timezone: Europe/Berlin - - package-ecosystem: npm + interval: "cron" + timezone: "Europe/Berlin" + cronjob: "15 2 17 * *" + open-pull-requests-limit: 15 + + - package-ecosystem: "npm" directory: "/" schedule: - interval: monthly - time: "04:00" - timezone: Europe/Berlin - open-pull-requests-limit: 5 - versioning-strategy: increase + interval: "cron" + timezone: "Europe/Berlin" + cronjob: "15 2 17 * *" + open-pull-requests-limit: 15 + versioning-strategy: "increase" diff --git a/.github/workflows/automerge-dependabot.yml b/.github/workflows/automerge-dependabot.yml new file mode 100644 index 0000000..cd5c91b --- /dev/null +++ b/.github/workflows/automerge-dependabot.yml @@ -0,0 +1,35 @@ +# Workflow for auto-merging Dependabot PRs +# This workflow uses the action-automerge-dependabot action to automatically merge +# Dependabot PRs based on the rules defined in .github/auto-merge.yml + +name: Auto-Merge Dependabot PRs + +on: + # Trigger when a PR is opened or updated + # WARNING: This needs to be run in the PR base, DO NOT build untrusted code in this action + pull_request_target: + types: [opened, synchronize, reopened] + +jobs: + auto-merge: + runs-on: ubuntu-latest + # Only run if actor is dependabot + if: github.actor == 'dependabot[bot]' + + permissions: + contents: write + pull-requests: write + + steps: + - name: Auto-merge Dependabot PRs + uses: iobroker-bot-orga/action-automerge-dependabot@v1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + # Optional: Path to your auto-merge configuration file + # config-file-path: '.github/auto-merge.yml' + # Optional: Merge method (merge, squash, or rebase) + # merge-method: 'squash' + # Optional: Wait for other checks to complete + # wait-for-checks: 'true' + # Optional: Maximum time to wait for checks in seconds (default: 3600) + # max-wait-time: '3600' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 5a38d85..0cd7d89 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,18 +24,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v4 with: languages: ${{ matrix.language }} queries: +security-and-quality - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v4 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v4 with: category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml.OLD similarity index 100% rename from .github/workflows/dependabot-automerge.yml rename to .github/workflows/dependabot-automerge.yml.OLD diff --git a/.gitignore b/.gitignore index 80e98bf..610b311 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,7 @@ admin/i18n/flat.txt admin/i18n/*/flat.txt iob_npm.done package-lock.json -.claude/settings.local.json \ No newline at end of file +#ignore .commitinfo created by ioBroker release script +.commitinfo +.claude/settings.local.json +