A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Security: add static analysis CI workflow (#12466)
shamoona945cd9379e5
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.ymlindex f92d1fb00..cff139e8c 100644--- a/.github/workflows/ci-backend.yml+++ b/.github/workflows/ci-backend.yml@@ -24,6 +24,7 @@ jobs:uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:fetch-depth: 0+ persist-credentials: false- name: Decide run modeid: forcerun: |@@ -72,6 +73,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Start containersrun: |docker compose --file docker/compose/docker-compose.ci-test.yml pull --quiet@@ -145,6 +148,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Set up Pythonid: setup-pythonuses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0diff --git a/.github/workflows/ci-docker.yml b/.github/workflows/ci-docker.ymlindex 48d258dca..43b79728d 100644--- a/.github/workflows/ci-docker.yml+++ b/.github/workflows/ci-docker.yml@@ -42,6 +42,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Determine ref nameid: refrun: |diff --git a/.github/workflows/ci-docs.yml b/.github/workflows/ci-docs.ymlindex 68f202264..a598a3c9d 100644--- a/.github/workflows/ci-docs.yml+++ b/.github/workflows/ci-docs.yml@@ -26,6 +26,7 @@ jobs:uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:fetch-depth: 0+ persist-credentials: false- name: Decide run modeid: forcerun: |@@ -71,6 +72,8 @@ jobs:- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Set up Pythonid: setup-pythonuses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.ymlindex dffb54e6b..9d4e23a1a 100644--- a/.github/workflows/ci-frontend.yml+++ b/.github/workflows/ci-frontend.yml@@ -62,6 +62,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Install pnpmuses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0with:@@ -90,6 +92,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Install pnpmuses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0with:@@ -125,6 +129,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Install pnpmuses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0with:@@ -176,6 +182,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Install pnpmuses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0with:@@ -209,6 +217,7 @@ jobs:uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:fetch-depth: 2+ persist-credentials: false- name: Install pnpmuses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0with:diff --git a/.github/workflows/ci-lint.yml b/.github/workflows/ci-lint.ymlindex bf1458e1d..314250719 100644--- a/.github/workflows/ci-lint.yml+++ b/.github/workflows/ci-lint.yml@@ -16,6 +16,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false- name: Install Pythonuses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0with:diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.ymlindex b38ecbc40..030e3bcad 100644--- a/.github/workflows/ci-release.yml+++ b/.github/workflows/ci-release.yml@@ -29,6 +29,8 @@ jobs:steps:- name: Checkoutuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false# ---- Frontend Build ----- name: Install pnpmuses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0@@ -179,6 +181,7 @@ jobs:uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:ref: main+ persist-credentials: true # for pushing changelog branch- name: Set up Pythonid: setup-pythonuses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0diff --git a/.github/workflows/ci-static-analysis.yml b/.github/workflows/ci-static-analysis.ymlnew file mode 100644index 000000000..99388354a--- /dev/null+++ b/.github/workflows/ci-static-analysis.yml@@ -0,0 +1,42 @@+name: Static Analysis+on:+ push:+ branches-ignore:+ - 'translations**'+ pull_request:+ branches-ignore:+ - 'translations**'+ workflow_dispatch:+concurrency:+ group: static-analysis-${{ github.event.pull_request.number || github.ref }}+ cancel-in-progress: true+permissions:+ contents: read+jobs:+ zizmor:+ name: Run zizmor+ runs-on: ubuntu-24.04+ permissions:+ contents: read+ actions: read+ security-events: write+ steps:+ - name: Checkout+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false+ - name: Run zizmor+ uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2+ semgrep:+ name: Semgrep CE+ runs-on: ubuntu-24.04+ container:+ image: semgrep/semgrep:1.155.0@sha256:cc869c685dcc0fe497c86258da9f205397d8108e56d21a86082ea4886e52784d+ if: github.actor != 'dependabot[bot]'+ steps:+ - name: Checkout+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false+ - name: Run Semgrep+ run: semgrep scan --config autodiff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.ymlindex 08c2bc1a2..e295e938d 100644--- a/.github/workflows/codeql-analysis.yml+++ b/.github/workflows/codeql-analysis.yml@@ -35,6 +35,8 @@ jobs:steps:- name: Checkout repositoryuses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2+ with:+ persist-credentials: false# Initializes the CodeQL tools for scanning.- name: Initialize CodeQLuses: github/codeql-action/init@c793b717bc78562f491db7b0e93a3a178b099162 # v4.32.5diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.ymlindex 38e73bbb5..29b4be02f 100644--- a/.github/workflows/crowdin.yml+++ b/.github/workflows/crowdin.yml@@ -16,6 +16,7 @@ jobs:uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2with:token: ${{ secrets.PNGX_BOT_PAT }}+ persist-credentials: false- name: crowdin actionuses: crowdin/github-action@8818ff65bfc4322384f983ea37e3926948c11745 # v2.15.0with:diff --git a/.github/workflows/translate-strings.yml b/.github/workflows/translate-strings.ymlindex c38886bc2..ad894abe7 100644--- a/.github/workflows/translate-strings.yml+++ b/.github/workflows/translate-strings.yml@@ -17,6 +17,7 @@ jobs:with:token: ${{ secrets.PNGX_BOT_PAT }}ref: ${{ env.GH_REF }}+ persist-credentials: true # for pushing translation branch- name: Set up Pythonid: setup-pythonuses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0