Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 00014903d5 | |||
| fe1b9d4803 | |||
| 8a9bbc18af |
@@ -0,0 +1,33 @@
|
||||
name: SonarQube
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
|
||||
sonarqube:
|
||||
name: SonarQube
|
||||
runs-on: build-htz-01
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Create Valid Project Key
|
||||
id: sonar_setup
|
||||
run: |
|
||||
CLEAN_KEY=$(echo "${{ gitea.repository }}" | tr '/' ':')
|
||||
echo "key=$CLEAN_KEY" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: SonarQube Scan
|
||||
uses: sonarsource/sonarqube-scan-action@master
|
||||
continue-on-error: true
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||
with:
|
||||
args: >
|
||||
-Dsonar.projectKey=${{ steps.sonar_setup.outputs.key }}
|
||||
-Dsonar.projectName=${{ gitea.repository }}
|
||||
-Dsonar.qualitygate.wait=true
|
||||
@@ -19,11 +19,11 @@
|
||||
<h2 class="text-xl font-bold text-neutral-100 mb-4">SFTP Target Location (URI)</h2>
|
||||
<p class="text-sm text-neutral-400 mb-4">Use this URI format in OPNsense backup configuration:</p>
|
||||
<div class="bg-neutral-900 rounded-md p-4 border border-neutral-600 mb-4">
|
||||
<code class="text-sm text-orange-400 break-all block">{{ sftp_uri }}</code>
|
||||
<code id="sftp-uri-content" class="text-sm text-orange-400 break-all block">{{ sftp_uri }}</code>
|
||||
</div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<button
|
||||
onclick="copyToClipboard('{{ sftp_uri }}')"
|
||||
onclick="copyToClipboard(document.getElementById('sftp-uri-content').textContent)"
|
||||
class="bg-orange-500 hover:bg-orange-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200 text-sm"
|
||||
>
|
||||
Copy URI
|
||||
@@ -46,11 +46,11 @@
|
||||
</p>
|
||||
{% if private_key_content %}
|
||||
<div class="bg-neutral-900 rounded-md p-4 border border-neutral-600 mb-4">
|
||||
<code class="text-sm text-neutral-300 whitespace-pre-wrap break-all block">{{ private_key_content }}</code>
|
||||
<code id="private-key-content" class="text-sm text-neutral-300 whitespace-pre-wrap break-all block">{{ private_key_content }}</code>
|
||||
</div>
|
||||
<div class="flex items-center space-x-2">
|
||||
<button
|
||||
onclick="copyToClipboard('{{ private_key_content }}')"
|
||||
onclick="copyToClipboard(document.getElementById('private-key-content').textContent)"
|
||||
class="bg-orange-500 hover:bg-orange-600 text-white font-medium py-2 px-4 rounded-md transition-colors duration-200 text-sm"
|
||||
>
|
||||
Copy Private Key
|
||||
|
||||
Reference in New Issue
Block a user