Compare commits

...

5 Commits

Author SHA1 Message Date
8808c652ee Update .gitea/workflows/run-hcdc.yaml 2025-09-26 07:47:50 +00:00
0bfc29fc2c Enable HCDC
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-26 07:42:56 +00:00
6f5e895214 Disable hcdc
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-25 13:36:42 +00:00
605b8bd9b2 switch to local branch instead of detached head state for HCDC
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-25 13:21:14 +00:00
aa6c3af702 Switch PR target for hcdc secrets
Reviewed-by: Tino Schreiber <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2025-09-25 13:11:11 +00:00

View File

@ -1,8 +1,12 @@
name: Run HCDC
name: Check for illegal characters
on:
pull_request:
pull_request_target:
types: [opened, reopened, synchronize, edited]
permissions:
contents: read
pull-requests: write
jobs:
run-hcdc:
@ -19,6 +23,14 @@ jobs:
persist-credentials: false
token: ${{ gitea.token }}
- name: Create local branch for PR head (same repo)
if: ${{ gitea.event.pull_request.head.repo.full_name == gitea.repository }}
shell: bash
run: |
set -euo pipefail
git checkout -B "${{ gitea.event.pull_request.head.ref }}" --no-track
git branch --show-current
- name: Checkout PR head (fork via PR ref)
if: ${{ gitea.event.pull_request.head.repo.full_name != gitea.repository }}
uses: https://github.com/actions/checkout@v4
@ -29,6 +41,14 @@ jobs:
persist-credentials: false
token: ${{ gitea.token }}
- name: Create local branch for PR head (fork)
if: ${{ gitea.event.pull_request.head.repo.full_name != gitea.repository }}
shell: bash
run: |
set -euo pipefail
git checkout -B "${{ gitea.event.pull_request.head.ref }}" --no-track
git branch --show-current
- name: Checkout base
uses: https://github.com/actions/checkout@v4
with:
@ -39,7 +59,6 @@ jobs:
persist-credentials: false
token: ${{ gitea.token }}
- name: Get OTC token
id: otc
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/get-otc-token@v1