diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 5251f58..ef0118d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: uses: SonarSource/sonarqube-scan-action@v4.2.1 env: SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} - name: Snyk Vulnerability Scan uses: snyk/actions/python@master diff --git a/.gitea/workflows/security.yml b/.gitea/workflows/security.yml new file mode 100644 index 0000000..e5b8112 --- /dev/null +++ b/.gitea/workflows/security.yml @@ -0,0 +1,34 @@ +name: Security + +on: + workflow_dispatch: + push: + branches: + - main + schedule: + - cron: "@daily" + +jobs: + sonarqube: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4.2.2 + + - name: SonarQube Scan + uses: SonarSource/sonarqube-scan-action@v4.2.1 + env: + SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }} + SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }} + + snyk: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4.2.2 + + - name: Snyk + uses: snyk/actions/python@master + continue-on-error: true + env: + SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}