Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
workflow_call:
jobs:
docs_bzl:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
path: tests-report

bazel_tests:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
merge_test_reports:
if: ${{ !cancelled() }}
needs: [docs_bzl, bazel_tests]
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
# Both Python versions produce Bazel reports at the same paths. Download
# one version for documentation so concurrent artifact extraction cannot
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/downstream_compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ permissions:

jobs:
downstream-test:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/link_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:

jobs:
link-check:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: 🛡️ Harden Runner
if: github.repository_owner == 'eclipse-score'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,57 +17,57 @@

jobs:
check-links:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
should_create_issue: ${{ steps.detect.outputs.issue_needed }}
steps:
- name: 🛡️ Harden Runner
if: github.repository_owner == 'eclipse-score'
uses: step-security/harden-runner@v2.22.1
with:
egress-policy: audit

- name: Setup Bazel with shared caching
uses: eclipse-score/cicd-actions/setup-bazel-cache@cache
with:
disk-cache-key: ${{ github.job }}

- name: Checkout repository
uses: actions/checkout@v7

# Run your link checker and generate log
- name: Run LinkChecker
run: |
bazel run --lockfile_mode=error //:docs_link_check > linkcheck_output.txt
continue-on-error: true

# Run your Python script to parse the linkcheck log and generate issue body
- name: Parse broken links and generate issue body
run: |
python3 scripts/link_parser.py linkcheck_output.txt

# Check if issue_body.md exists and is not empty
- name: Check for issues to report
id: detect
run: |
if [ -s issue_body.md ]; then
echo "issue_needed=true" >> "$GITHUB_OUTPUT"
else
echo "issue_needed=false" >> "$GITHUB_OUTPUT"
fi

# Upload issue body artifact if present
- name: Upload issue body
if: steps.detect.outputs.issue_needed == 'true'
uses: actions/upload-artifact@v7
with:
name: issue-body
path: issue_body.md

create-issue:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium test

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
needs: check-links
if: needs.check-links.outputs.should_create_issue == 'true'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Download issue body artifact
uses: actions/download-artifact@v8
Expand Down
Loading