From f80ce7b4eaf233111e14ae5540d36cbfda3c2305 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:52:12 +0100 Subject: [PATCH 01/17] Create task-docker.yml --- .github/workflows/task-docker.yml | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/task-docker.yml diff --git a/.github/workflows/task-docker.yml b/.github/workflows/task-docker.yml new file mode 100644 index 00000000..ed2291a0 --- /dev/null +++ b/.github/workflows/task-docker.yml @@ -0,0 +1,57 @@ +name: Publish Docker image + +on: + workflow_call: + inputs: + reponame: + description: 'the image name of the docker hub image' + default: 'h2invent/jitsi-admin-main' + required: true + type: string + directory: + description: 'the dir of the Dockerfile image' + default: '.' + required: true + type: string + dockerfile_path: + description: 'the name of the Dockerfile image' + default: './Dockerfile' + required: true + type: string + version: + description: 'the version/tag of the Dockerfile image' + required: true + type: string + tags: + description: 'the tags of the Dockerfile image' + required: true + type: string + secrets: + docker_username: + required: true + docker_password: + required: true + +jobs: + push_to_registry: + name: Build and Push Docker image + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Log in to Docker Registry + uses: docker/login-action@v3 + with: + registry: git.h2-invent.com + username: ${{ secrets.docker_username }} + password: ${{ secrets.docker_password }} + + - name: Build and push Docker image + uses: docker/build-push-action@v6 + with: + context: ${{ inputs.directory }} + file: ${{ inputs.dockerfile_path }} + push: true + build-args: VERSION=${{ inputs.version }} + tags: ${{ inputs.tags }} From 27b4ec194541a1cef1015b42af2e8bfffb90e391 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:56:53 +0100 Subject: [PATCH 02/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index 09a1eac9..c3257e95 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -9,12 +9,14 @@ on: jobs: artifact: - uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@master + uses: ./.github/workflows/task-artifact.yml - create_dev_release: + create_release: needs: - artifact runs-on: ubuntu-latest + outputs: + create_release_output: ${{ steps.version.outputs.version }} steps: - name: Checkout @@ -59,3 +61,15 @@ jobs: artifacts: artifact/application.zip artifactContentType: application/zip bodyFile: RELEASE_NOTE.md + + docker: + needs: + - create_release + uses: ./.github/workflows/task-docker.yml + with: + reponame: 'git.h2-invent.com/datenschutzcenter/application' + version: ${{ needs.create_release.outputs.create_release_output }} + tags: 'git.h2-invent.com/datenschutzcenter/application:development,git.h2-invent.com/datenschutzcenter/application:${{ needs.create_release.outputs.create_release_output }}' + secrets: + docker_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} + docker_username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} From 91ff41ada77435e59caf7037b0805f8977da5f8f Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:58:37 +0100 Subject: [PATCH 03/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index c3257e95..13c43e37 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -6,6 +6,7 @@ on: push: branches: - development + - feature/docker* jobs: artifact: From 269f265dec6453bc13c1d897d5daa6d9933c22c9 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 16:59:11 +0100 Subject: [PATCH 04/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index 13c43e37..6aab295d 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -70,6 +70,8 @@ jobs: with: reponame: 'git.h2-invent.com/datenschutzcenter/application' version: ${{ needs.create_release.outputs.create_release_output }} + dockerfile_path: './Dockerfile' + directory: '.' tags: 'git.h2-invent.com/datenschutzcenter/application:development,git.h2-invent.com/datenschutzcenter/application:${{ needs.create_release.outputs.create_release_output }}' secrets: docker_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} From 612afd121b77325955e6260ae86a3b92a219c421 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:05:55 +0100 Subject: [PATCH 05/17] Update pipeline-release.yml --- .github/workflows/pipeline-release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline-release.yml b/.github/workflows/pipeline-release.yml index ee650380..ea3d8a58 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -10,12 +10,14 @@ on: jobs: artifact: - uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@master + uses: ./.github/workflows/task-artifact.yml create_release: needs: - artifact runs-on: ubuntu-latest + outputs: + create_release_output: ${{ steps.version.outputs.version }} steps: - name: Checkout @@ -60,3 +62,17 @@ jobs: artifacts: artifact/application.zip artifactContentType: application/zip bodyFile: RELEASE_NOTE.md + + docker: + needs: + - create_release + uses: ./.github/workflows/task-docker.yml + with: + reponame: 'git.h2-invent.com/datenschutzcenter/application' + version: ${{ needs.create_release.outputs.create_release_output }} + dockerfile_path: './Dockerfile' + directory: '.' + tags: 'git.h2-invent.com/datenschutzcenter/application:${{ needs.create_release.outputs.create_release_output }},git.h2-invent.com/datenschutzcenter/application:latest' + secrets: + docker_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} + docker_username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} From b2ef7b1b64d3f574774def620489a740efcb2925 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:24:15 +0100 Subject: [PATCH 06/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 36 +++++++++++++--------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index 6aab295d..0e09c370 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -9,17 +9,11 @@ on: - feature/docker* jobs: - artifact: - uses: ./.github/workflows/task-artifact.yml - - create_release: - needs: - - artifact + version: runs-on: ubuntu-latest outputs: - create_release_output: ${{ steps.version.outputs.version }} + version: ${{ steps.version.outputs.version }} steps: - - name: Checkout uses: actions/checkout@v4 with: @@ -34,6 +28,20 @@ jobs: change_path: . version_format: "${major}.${minor}.${patch}-${increment}" + artifact: + uses: ./.github/workflows/task-artifact.yml + + create_release: + needs: + - artifact + - version + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/download-artifact@v4 with: name: artifact_${{github.run_number}} @@ -42,7 +50,7 @@ jobs: - name: Set laF_version in .env run: | - sed -i 's/^laF_version=.*/laF_version=${{ steps.version.outputs.version }}/' .env + sed -i 's/^laF_version=.*/laF_version=${{ needs.version.outputs.version }}/' .env - name: Archive Release for application uses: thedoctor0/zip-release@0.7.1 @@ -57,22 +65,22 @@ jobs: id: create_release with: prerelease: true - name: DEV Release ${{ steps.version.outputs.version }} - tag: ${{ steps.version.outputs.version }} + name: DEV Release ${{ needs.version.outputs.version }} + tag: ${{ needs.version.outputs.version }} artifacts: artifact/application.zip artifactContentType: application/zip bodyFile: RELEASE_NOTE.md docker: needs: - - create_release + - version uses: ./.github/workflows/task-docker.yml with: reponame: 'git.h2-invent.com/datenschutzcenter/application' - version: ${{ needs.create_release.outputs.create_release_output }} + version: ${{ needs.version.outputs.version }} dockerfile_path: './Dockerfile' directory: '.' - tags: 'git.h2-invent.com/datenschutzcenter/application:development,git.h2-invent.com/datenschutzcenter/application:${{ needs.create_release.outputs.create_release_output }}' + tags: 'git.h2-invent.com/datenschutzcenter/application:${{ needs.version.outputs.version }},git.h2-invent.com/datenschutzcenter/application:development' secrets: docker_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} docker_username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} From b5ee3bc27036a441a228d766ad5632b7bead35d3 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:29:48 +0100 Subject: [PATCH 07/17] Create tasks-release.yml --- .github/workflows/tasks-release.yml | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/tasks-release.yml diff --git a/.github/workflows/tasks-release.yml b/.github/workflows/tasks-release.yml new file mode 100644 index 00000000..497853bb --- /dev/null +++ b/.github/workflows/tasks-release.yml @@ -0,0 +1,50 @@ +name: Publish new Release + +on: + workflow_call: + inputs: + version: + description: 'release version' + default: true + type: string + prerelease: + description: 'publish releases as preprelease' + default: true + type: boolean +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/download-artifact@v4 + with: + name: artifact_${{github.run_number}} + + - run: unzip -qq artifact_${{github.run_number}}.zip -d artifact + + - name: Set laF_version in .env + run: | + sed -i 's/^laF_version=.*/laF_version=${{ inputs.version }}/' .env + + - name: Archive Release for application + uses: thedoctor0/zip-release@0.7.1 + with: + type: 'zip' + filename: 'application.zip' + exclusions: '*.git* *.github* /*node_modules/* /*var/* .editorconfig' + directory: artifact + + - name: Create new Release with semantic-version tag + uses: ncipollo/release-action@v1 + id: create_release + with: + prerelease: ${{ inputs.prerelease }} + name: DEV Release ${{ inputs.version }} + tag: ${{ inputs.version }} + artifacts: artifact/application.zip + artifactContentType: application/zip + bodyFile: RELEASE_NOTE.md From b0e281e47f14242dfde6d77eef7cf306144b0a6d Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:31:05 +0100 Subject: [PATCH 08/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 41 +++------------------- 1 file changed, 5 insertions(+), 36 deletions(-) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index 0e09c370..75390f34 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -31,45 +31,14 @@ jobs: artifact: uses: ./.github/workflows/task-artifact.yml - create_release: + prerelease: needs: - artifact - version - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - uses: actions/download-artifact@v4 - with: - name: artifact_${{github.run_number}} - - - run: unzip -qq artifact_${{github.run_number}}.zip -d artifact - - - name: Set laF_version in .env - run: | - sed -i 's/^laF_version=.*/laF_version=${{ needs.version.outputs.version }}/' .env - - - name: Archive Release for application - uses: thedoctor0/zip-release@0.7.1 - with: - type: 'zip' - filename: 'application.zip' - exclusions: '*.git* *.github* /*node_modules/* /*var/* .editorconfig' - directory: artifact - - - name: Create new Release with semantic-version tag - uses: ncipollo/release-action@v1 - id: create_release - with: - prerelease: true - name: DEV Release ${{ needs.version.outputs.version }} - tag: ${{ needs.version.outputs.version }} - artifacts: artifact/application.zip - artifactContentType: application/zip - bodyFile: RELEASE_NOTE.md + uses: ./.github/workflows/task-release.yml + with: + version: ${{ needs.version.outputs.version }} + prerelease: true docker: needs: From 2f46ef86aea6e5d19a24cb08197bb9a6000218a6 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:31:33 +0100 Subject: [PATCH 09/17] Rename tasks-release.yml to task-release.yml --- .github/workflows/{tasks-release.yml => task-release.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{tasks-release.yml => task-release.yml} (100%) diff --git a/.github/workflows/tasks-release.yml b/.github/workflows/task-release.yml similarity index 100% rename from .github/workflows/tasks-release.yml rename to .github/workflows/task-release.yml From 8383fda409585ac129d53f4314b60903a38aba91 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:35:03 +0100 Subject: [PATCH 10/17] Update pipeline-release.yml --- .github/workflows/pipeline-release.yml | 53 ++++++++------------------ 1 file changed, 15 insertions(+), 38 deletions(-) diff --git a/.github/workflows/pipeline-release.yml b/.github/workflows/pipeline-release.yml index ea3d8a58..5fb79d3a 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -9,17 +9,11 @@ on: - master jobs: - artifact: - uses: ./.github/workflows/task-artifact.yml - - create_release: - needs: - - artifact + version: runs-on: ubuntu-latest outputs: - create_release_output: ${{ steps.version.outputs.version }} + version: ${{ steps.version.outputs.version }} steps: - - name: Checkout uses: actions/checkout@v4 with: @@ -34,45 +28,28 @@ jobs: change_path: . version_format: "${major}.${minor}.${patch}" - - uses: actions/download-artifact@v4 - with: - name: artifact_${{github.run_number}} - - - run: unzip -qq artifact_${{github.run_number}}.zip -d artifact - - - name: Set laF_version in .env - run: | - sed -i 's/^laF_version=.*/laF_version=${{ steps.version.outputs.version }}/' .env - - - name: Archive Release for application - uses: thedoctor0/zip-release@0.7.1 - with: - type: 'zip' - filename: 'application.zip' - exclusions: '*.git* *.github* /*node_modules/* /*nodejs/* /*var/* .editorconfig' - directory: artifact + artifact: + uses: ./.github/workflows/task-artifact.yml - - name: Create new Release with semantic-version tag - uses: ncipollo/release-action@v1 - id: create_release - with: - prerelease: false - name: Release ${{ steps.version.outputs.version }} - tag: ${{ steps.version.outputs.version }} - artifacts: artifact/application.zip - artifactContentType: application/zip - bodyFile: RELEASE_NOTE.md + release: + needs: + - artifact + - version + uses: ./.github/workflows/task-release.yml + with: + version: ${{ needs.version.outputs.version }} + prerelease: false docker: needs: - - create_release + - version uses: ./.github/workflows/task-docker.yml with: reponame: 'git.h2-invent.com/datenschutzcenter/application' - version: ${{ needs.create_release.outputs.create_release_output }} + version: ${{ needs.version.outputs.version }} dockerfile_path: './Dockerfile' directory: '.' - tags: 'git.h2-invent.com/datenschutzcenter/application:${{ needs.create_release.outputs.create_release_output }},git.h2-invent.com/datenschutzcenter/application:latest' + tags: 'git.h2-invent.com/datenschutzcenter/application:${{ needs.version.outputs.version }},git.h2-invent.com/datenschutzcenter/application:latest' secrets: docker_password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} docker_username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} From b5843c0142e2b49e886f0c88a955be30c01aa31a Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 17:38:22 +0100 Subject: [PATCH 11/17] Update RELEASE_NOTE.md --- RELEASE_NOTE.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/RELEASE_NOTE.md b/RELEASE_NOTE.md index 88ae1f55..8380acef 100644 --- a/RELEASE_NOTE.md +++ b/RELEASE_NOTE.md @@ -1,13 +1,10 @@ -# Release 4.0.0 +# Release 4.0.1 ## Neue Funktionen und Verbesserungen -* In den TOM Formularen können jetzt die technischen und organisatorischen Maßnahmen mit einem WYSIWYG Editor beschrieben werden. (https://github.com/H2-invent/open-datenschutzcenter/pull/217) -* Der neue Assistent unterstützt beim Erstellen von Verarbeitungen und allen notwendigen Datensätzen. Dieser Assistent erleichtert die Erfassung von neuen Verarbeitungen. (https://github.com/H2-invent/open-datenschutzcenter/pull/204) -* Ab sofort können Datenschutzelemente von einem Team in Kinderteams vererbt werden. (https://github.com/H2-invent/open-datenschutzcenter/pull/205) -* Add new Dockerfile for the ODC +* New Github Action with Docker build ## Bug fixes ## Update Anleitung -* Die Anleitung zum Installieren des ODCs mit hilfe Docker Compose wurde angepasst (https://github.com/H2-invent/open-datenschutzcenter/wiki/Get-Started) +* Docker Images Updated with Github Action From 273a7376c70971d3381aeb3ae5fff699baec9e94 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 19:56:38 +0100 Subject: [PATCH 12/17] Update RELEASE_NOTE.md --- RELEASE_NOTE.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RELEASE_NOTE.md b/RELEASE_NOTE.md index 8380acef..19d94022 100644 --- a/RELEASE_NOTE.md +++ b/RELEASE_NOTE.md @@ -1,5 +1,9 @@ # Release 4.0.1 +> Dieses Release wird als Docker Image auf git.h2-invent.com/datenschutzcenter/application öffentlich bereitgestellt. +> +> Dieses Release wird als ZIP Artifact mit Webpack CSS und JS Files und Composer Vendor Files auf Github für eine manuelle Installation auf einem Webserver bereitgestellt. + ## Neue Funktionen und Verbesserungen * New Github Action with Docker build From 720e49bf6a38c46efc020d1eccc08cd1b2eebba9 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:01:29 +0100 Subject: [PATCH 13/17] Update README.md --- README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/README.md b/README.md index f660a7b0..d25ec911 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ __Open Source Datenschutzmanagement System__ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md) +[![Create Release](https://github.com/H2-invent/open-datenschutzcenter/actions/workflows/pipeline-release.yml/badge.svg)](https://github.com/H2-invent/open-datenschutzcenter/actions/workflows/pipeline-release.yml) Der Open Datenschutzcenter (ODC) ist ein Open Source Datenschutzmanagement-System für Unternehmen und Datenschutzbeauftragte. Der ODC wird kontinuierlich mit einer aktiven Community von Unternehmen, Datenschutzbeauftragten und Informationssicherheitsbeauftragten weiterentwickelt. Open Source bedeutet, dass der Quellcode der Software öffentlich zugänglich zur Verfügung steht. Unternehmen können den ODC auf einem eigenen Server betrieben, eigene Funktionen entwickeln und die Funktionalität erweitern. Die H2 Invent GmbH ist das Unternehmen hinter dem Open Datenschutzcenter und verwaltet das Repository, das Wiki und die Releases. H2 Invent entwickelt für Unternehmen neue ODC Funktionen um diesen den Anforderungen des Unternehmens anzupassen. @@ -78,14 +79,6 @@ Das bereitgestellte Docker-Compose-File installiert das ODC im Produktionsmodus Zusätzlich zum ODC-Container werden ein Traefik Load Balancer, eine MySQL-Datenbank und ein Keycloak-Server eingerichtet. Alle Anwendungen können auch ohne das Docker Compose-File in Umgebungen wie Swarm oder Helm betrieben werden. -# Migrations -#### von 1.12.X auf 2.X -* nach einer Umstellung des Default Teams muss eine Migration der Datenbank vorgenommen werden. Für die Migration muss einmal der Command über die CLI durchgeführt werden. -Danach werden alle Audit Ziele vom Default Team 1 auf null umgestellt. -```` -php bin/console app:migrate:defaultTeam -```` - # Kooperation In Kooperation mit der [Professur "Datenschutz und Compliance"](https://www.unibw.de/datcom) des Forschungsinstituts Cyber Defence (CODE) der [Universität der Bundeswehr München](https://www.unibw.de/home) wurden: * das Open Datenschutzcenter im Rahmen der [Masterarbeit](docs/Masterarbeit_loeschkonzepte.pdf) von Herrn Juister um die Funktion zum Dokumentieren von Löschkonzepten ergänzt. From ab16af3b437691c231d811f4a193c12815fba201 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:03:53 +0100 Subject: [PATCH 14/17] Create todo-to-issue.yml --- .github/workflows/todo-to-issue.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/todo-to-issue.yml diff --git a/.github/workflows/todo-to-issue.yml b/.github/workflows/todo-to-issue.yml new file mode 100644 index 00000000..9b1c5bde --- /dev/null +++ b/.github/workflows/todo-to-issue.yml @@ -0,0 +1,15 @@ +name: "Run TODO to Issue" + +on: [ "push" ] + +jobs: + create_issues: + runs-on: "ubuntu-latest" + permissions: + issues: write + steps: + - name: Checkout Repository + uses: "actions/checkout@v4" + + - name: "TODO to Issue" + uses: alstr/todo-to-issue-action@v5 From 034041edea643d61e438a1d3da5574f2ab3312f0 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:16:36 +0100 Subject: [PATCH 15/17] Create task-test.yml --- .github/workflows/task-test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/task-test.yml diff --git a/.github/workflows/task-test.yml b/.github/workflows/task-test.yml new file mode 100644 index 00000000..4fb8700e --- /dev/null +++ b/.github/workflows/task-test.yml @@ -0,0 +1,24 @@ +name: Code Analysis + +on: workflow_call + +jobs: + phpstan: + name: PHPStan + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ vars.PHP_VERSION }} + + - name: Install dependencies + uses: ramsey/composer-install@v3 + with: + composer-options: --prefer-dist + + - name: Run script + run: vendor/bin/phpstan analyse From 51a0cada281bebc1e61ea9f15dc5befaaa93ceca Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:18:26 +0100 Subject: [PATCH 16/17] Create pipeline-test.yml --- .github/workflows/pipeline-test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/workflows/pipeline-test.yml diff --git a/.github/workflows/pipeline-test.yml b/.github/workflows/pipeline-test.yml new file mode 100644 index 00000000..9b5dfc05 --- /dev/null +++ b/.github/workflows/pipeline-test.yml @@ -0,0 +1,9 @@ +name: Run Code Analysis on push + +on: + push: + +jobs: + + artifact: + uses: ./.github/workflows/task-test.yml From 5c2de3483ad9bd83510cfc495662ff6d8f83873b Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Sat, 8 Feb 2025 20:20:12 +0100 Subject: [PATCH 17/17] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d25ec911..912c4872 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ __Open Source Datenschutzmanagement System__ [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md) [![Create Release](https://github.com/H2-invent/open-datenschutzcenter/actions/workflows/pipeline-release.yml/badge.svg)](https://github.com/H2-invent/open-datenschutzcenter/actions/workflows/pipeline-release.yml) +[![Run Code Analysis on push](https://github.com/H2-invent/open-datenschutzcenter/actions/workflows/pipeline-test.yml/badge.svg)](https://github.com/H2-invent/open-datenschutzcenter/actions/workflows/pipeline-test.yml) Der Open Datenschutzcenter (ODC) ist ein Open Source Datenschutzmanagement-System für Unternehmen und Datenschutzbeauftragte. Der ODC wird kontinuierlich mit einer aktiven Community von Unternehmen, Datenschutzbeauftragten und Informationssicherheitsbeauftragten weiterentwickelt. Open Source bedeutet, dass der Quellcode der Software öffentlich zugänglich zur Verfügung steht. Unternehmen können den ODC auf einem eigenen Server betrieben, eigene Funktionen entwickeln und die Funktionalität erweitern. Die H2 Invent GmbH ist das Unternehmen hinter dem Open Datenschutzcenter und verwaltet das Repository, das Wiki und die Releases. H2 Invent entwickelt für Unternehmen neue ODC Funktionen um diesen den Anforderungen des Unternehmens anzupassen.