aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Watkins <mwatkins@linuxfoundation.org>2025-03-19 10:38:23 +0000
committerMatthew Watkins <mwatkins@linuxfoundation.org>2025-03-19 10:39:43 +0000
commit6308111c5e4b66e01fcd82bd0a0a8f23ff976be3 (patch)
treecafec1b135e9ed671dac04b3191b7a3841088f8a
parent0e3d6e6026e116f06d1883384518fbbf56743487 (diff)
Chore: Enable dependabot and GitHub2Gerrit
Add dependabot configuration file and GitHub2Gerrit workflow. Issue-ID: CIMAN-33 Change-Id: I9cc1b4f3688c213ae059ccf33fa44b0e430d3c1d Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
-rw-r--r--.github/dependabot.yml11
-rw-r--r--.github/workflows/github2gerrit.yaml33
2 files changed, 44 insertions, 0 deletions
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 00000000..02362cd2
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,11 @@
+---
+# Dependabot configured for weekly Maven updates
+
+version: 2
+updates:
+ # Enable version updates for Maven
+ - package-ecosystem: "maven"
+ directory: "/"
+ # Check the registry for updates weekly
+ schedule:
+ interval: "weekly"
diff --git a/.github/workflows/github2gerrit.yaml b/.github/workflows/github2gerrit.yaml
new file mode 100644
index 00000000..afa12927
--- /dev/null
+++ b/.github/workflows/github2gerrit.yaml
@@ -0,0 +1,33 @@
+---
+# SPDX-License-Identifier: Apache-2.0
+# Copyright 2024 The Linux Foundation <abelur@linux.com>
+
+name: call-github2gerrit-reusable-workflow
+
+# yamllint disable-line rule:truthy
+on:
+ workflow_dispatch:
+ pull_request_target:
+ types: [opened, reopened, edited, synchronize]
+ branches:
+ - master
+ - main
+
+concurrency:
+ # yamllint disable-line rule:line-length
+ group: ${{ github.workflow }}-${{ github.run_id }}
+ cancel-in-progress: true
+
+jobs:
+ call-in-g2g-workflow:
+ permissions:
+ contents: read
+ pull-requests: write
+ uses: lfit/github2gerrit/.github/workflows/github2gerrit.yaml@main
+ with:
+ GERRIT_KNOWN_HOSTS: ${{ vars.GERRIT_KNOWN_HOSTS }}
+ GERRIT_SSH_USER_G2G: ${{ vars.GERRIT_SSH_USER_G2G }}
+ GERRIT_SSH_USER_G2G_EMAIL: ${{ vars.GERRIT_SSH_USER_G2G_EMAIL }}
+ ORGANIZATION: ${{ vars.ORGANIZATION }}
+ secrets:
+ GERRIT_SSH_PRIVKEY_G2G: ${{ secrets.GERRIT_SSH_PRIVKEY_G2G }}