Skip to content

Commit 364f057

Browse files
authored
Merge branch 'main' into docs/test-documentation
2 parents d47b60c + c79ba4d commit 364f057

3 files changed

Lines changed: 5 additions & 97 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches: [main]
66
pull_request:
77
branches: [main]
8-
paths-ignore:
9-
- '**/*.md'
10-
- 'LICENSE'
118
schedule:
129
# Weekly scan on Sunday at midnight UTC — catches newly published CVEs
1310
# against existing code between releases.

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -15,48 +15,7 @@ env:
1515

1616
jobs:
1717
# ─────────────────────────────────────────────────────────────────────────────
18-
# JOB 0 — changes
19-
# Detects whether any non-docs files changed. When only .md files (or
20-
# LICENSE / ISSUE_TEMPLATE) are modified, expensive jobs are skipped and
21-
# report "skipped" (green) so required branch-protection checks are satisfied.
22-
# ─────────────────────────────────────────────────────────────────────────────
23-
changes:
24-
runs-on: ubuntu-latest
25-
outputs:
26-
code: ${{ steps.filter.outputs.code }}
27-
steps:
28-
- name: Harden the runner (Audit all outbound calls)
29-
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
30-
with:
31-
egress-policy: audit
32-
33-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
34-
with:
35-
fetch-depth: 0
36-
37-
- name: Check for non-docs changes
38-
id: filter
39-
run: |
40-
if [ "${{ github.event_name }}" = "pull_request" ]; then
41-
BASE="${{ github.event.pull_request.base.sha }}"
42-
HEAD="${{ github.event.pull_request.head.sha }}"
43-
else
44-
BASE="${{ github.event.before }}"
45-
HEAD="${{ github.sha }}"
46-
fi
47-
# No base SHA (force push / first push / workflow_dispatch) → always run
48-
if [ -z "${BASE}" ] || [ "${BASE}" = "0000000000000000000000000000000000000000" ]; then
49-
echo "code=true" >> "$GITHUB_OUTPUT"
50-
echo "No base SHA — treating as code change"
51-
exit 0
52-
fi
53-
COUNT=$(git diff --name-only "${BASE}" "${HEAD}" \
54-
| grep -cvE '^(.*\.md|LICENSE(\.md)?|\.github/ISSUE_TEMPLATE/.*)$' || echo 0)
55-
echo "code=$([ "${COUNT}" -gt 0 ] && echo 'true' || echo 'false')" >> "$GITHUB_OUTPUT"
56-
echo "Non-docs changed files: ${COUNT}"
57-
58-
# ─────────────────────────────────────────────────────────────────────────────
59-
# JOB 1 — check-version (post-merge only)
18+
# JOB 0 — check-version (post-merge only)
6019
# Checks whether this push introduces a new version that needs releasing.
6120
# All post-merge release jobs (build push, verify, scan, merge, cleanup) are
6221
# gated on this output so that pipeline-only merges (no version bump) complete
@@ -100,10 +59,9 @@ jobs:
10059
# ─────────────────────────────────────────────────────────────────────────────
10160
build-and-push:
10261
runs-on: ubuntu-latest
103-
needs: [check-version, changes]
62+
needs: check-version
10463
if: |
10564
always() &&
106-
needs.changes.outputs.code == 'true' &&
10765
(github.event_name == 'pull_request' || needs.check-version.outputs.is-new-version == 'true')
10866
strategy:
10967
fail-fast: true
@@ -592,9 +550,8 @@ jobs:
592550
# ─────────────────────────────────────────────────────────────────────────────
593551
pre-merge-cd-check:
594552
runs-on: ubuntu-latest
595-
needs: [build-and-push, changes]
553+
needs: build-and-push
596554
if: |
597-
needs.changes.outputs.code == 'true' &&
598555
github.event_name == 'pull_request' &&
599556
github.event.pull_request.head.repo.full_name == github.repository
600557
permissions:

.github/workflows/functional-tests.yml

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -10,56 +10,10 @@ on:
1010
permissions: read-all
1111

1212
jobs:
13-
# ─────────────────────────────────────────────────────────────────────────────
14-
# JOB 0 — changes
15-
# Detects whether any non-docs files changed. When only .md files (or
16-
# LICENSE / ISSUE_TEMPLATE) are modified, expensive jobs are skipped and
17-
# report "skipped" (green) so required branch-protection checks are satisfied.
18-
# ─────────────────────────────────────────────────────────────────────────────
19-
changes:
20-
runs-on: ubuntu-latest
21-
outputs:
22-
code: ${{ steps.filter.outputs.code }}
23-
steps:
24-
- name: Harden the runner (Audit all outbound calls)
25-
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
26-
with:
27-
egress-policy: audit
28-
29-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
30-
with:
31-
fetch-depth: 0
32-
33-
- name: Check for non-docs changes
34-
id: filter
35-
run: |
36-
if [ "${{ github.event_name }}" = "pull_request" ]; then
37-
BASE="${{ github.event.pull_request.base.sha }}"
38-
HEAD="${{ github.event.pull_request.head.sha }}"
39-
else
40-
BASE="${{ github.event.before }}"
41-
HEAD="${{ github.sha }}"
42-
fi
43-
# No base SHA (force push / first push / workflow_dispatch) → always run
44-
if [ -z "${BASE}" ] || [ "${BASE}" = "0000000000000000000000000000000000000000" ]; then
45-
echo "code=true" >> "$GITHUB_OUTPUT"
46-
echo "No base SHA — treating as code change"
47-
exit 0
48-
fi
49-
COUNT=$(git diff --name-only "${BASE}" "${HEAD}" \
50-
| grep -cvE '^(.*\.md|LICENSE(\.md)?|\.github/ISSUE_TEMPLATE/.*)$' || echo 0)
51-
echo "code=$([ "${COUNT}" -gt 0 ] && echo 'true' || echo 'false')" >> "$GITHUB_OUTPUT"
52-
echo "Non-docs changed files: ${COUNT}"
53-
5413
test:
55-
needs: [changes]
5614
runs-on: ubuntu-latest
57-
# Skip when only docs changed. Also skip fork PRs (no secrets) — tests
58-
# skip gracefully when credentials are absent, but avoid the overhead.
59-
if: |
60-
needs.changes.outputs.code == 'true' &&
61-
(github.event_name == 'push' || github.event_name == 'workflow_dispatch' ||
62-
github.event.pull_request.head.repo.full_name == github.repository)
15+
# Secrets are not available on fork PRs — tests skip gracefully
16+
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository
6317
steps:
6418
- name: Harden the runner (Audit all outbound calls)
6519
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0

0 commit comments

Comments
 (0)