From 9e20ded40ce910c37037dd4a26cff29235650573 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Thu, 12 Feb 2026 20:02:16 +0100 Subject: [PATCH] ci: add tas (#57) Reviewed-on: https://gitea.t000-n.de/t.behrendt/conventional-semantic-git-tag-increment/pulls/57 Co-authored-by: Timo Behrendt Co-committed-by: Timo Behrendt --- .gitea/workflows/run-tas.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitea/workflows/run-tas.yaml diff --git a/.gitea/workflows/run-tas.yaml b/.gitea/workflows/run-tas.yaml new file mode 100644 index 0000000..2a9115c --- /dev/null +++ b/.gitea/workflows/run-tas.yaml @@ -0,0 +1,31 @@ +name: Run TAS + +on: + pull_request: + workflow_dispatch: + inputs: + branch: + description: "The branch to run TAS on" + required: true + default: "main" + schedule: + - cron: "0 6 * * 5" + +jobs: + run-tas: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-trivy@1.3.1 + - uses: https://gitea.t000-n.de/t.behrendt/trivy-actions/setup-db@1.3.1 + - env: + TRIVY_CACHE_DIR: ${{ runner.temp }}/trivy + run: | + trivy fs --cache-dir "$TRIVY_CACHE_DIR" --exit-code 0 --format sarif --output sarif.json . + - uses: https://gitea.t000-n.de/t.behrendt/tas-actions/tas-upload-sarif@0.0.2 + with: + tas-base-url: ${{ vars.TAS_BASE_URL }} + sarif-file: sarif.json + owner: t.behrendt + repo: conventional-semantic-git-tag-increment + branch: ${{ inputs.branch || github.head_ref || 'main' }}