aboutsummaryrefslogtreecommitdiffstats
path: root/qtSecurity_bot.service
diff options
context:
space:
mode:
authorDaniel Smith <[email protected]>2024-06-27 13:22:12 +0200
committerDaniel Smith <[email protected]>2025-05-20 09:51:48 +0000
commit1ed01b4a1e5172090d71e472ccb721777cacab27 (patch)
treea496c6816944e9d4e94997c7058e41b6bfde4db5 /qtSecurity_bot.service
parent05d173273e8d66db2d7a608ad846865a01d6776a (diff)
Say hello to the Qt Security BotHEADdev
This bot checks files for each patchset and tags the change with a hashtag if it touches a file that is marked as security sensitive. Task-number: QTQAINFRA-6431 Change-Id: I09f0c2fb646fa902a2278771f48a5401f4770586 Reviewed-by: Daniel Smith <[email protected]>
Diffstat (limited to 'qtSecurity_bot.service')
-rw-r--r--qtSecurity_bot.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/qtSecurity_bot.service b/qtSecurity_bot.service
new file mode 100644
index 0000000..df252e6
--- /dev/null
+++ b/qtSecurity_bot.service
@@ -0,0 +1,22 @@
+[Unit]
+Description=securityHeader Bot
+After=network.target
+
+[Service]
+ExecStart=/home/qt/.local/bin/pipenv run python3 main.py
+WorkingDirectory=/home/qt/qt-securityHeader-bot/src
+User=qt
+Group=qt
+Restart=always
+
+# It is recommended to set environment variables in an override.conf file
+# readable only to the user to protect secrets.
+Environment="QTSECURITYBOT_GERRIT_USERNAME=foo"
+Environment="QTSECURITYBOT_GERRIT_PASSWORD=bar"
+Environment="QTSECURITYBOT_TEAMS_WEBHOOK_URL="
+Environment="QTSECURITYBOT_TEAMS_ERROR_WEBHOOK_URL="
+Environment="QTSECURITYBOT_PORT=8090"
+
+
+[Install]
+WantedBy=multi-user.target