Skip to content

try using harden-runner in doc as code#502

Closed
srinivasugithub wants to merge 1 commit into
eclipse-score:mainfrom
bgsw-contrib:feature/harden-runner
Closed

try using harden-runner in doc as code#502
srinivasugithub wants to merge 1 commit into
eclipse-score:mainfrom
bgsw-contrib:feature/harden-runner

Conversation

@srinivasugithub
Copy link
Copy Markdown
Contributor

Description
Add security hardening step to GitHub workflows

This PR adds the step-security/harden-runner@v2.18.0 action to 6 GitHub workflows to improve the security posture of the Eclipse SCORE project. The hardening runner monitors and audits egress (outbound) network traffic from CI/CD jobs, helping to detect and prevent unauthorized or suspicious network activity.

Modified workflows:

consumer_test.yml
link_check.yml
lint.yml
renovate.yml
test.yml
test_links.yml
Key implementation details:

Conditional execution: Only runs when github.repository_owner == 'eclipse-score' (does not affect forks)
Egress policy set to audit (non-blocking, monitoring mode)
Positioned as the first step in each job for maximum effectiveness

Impact Analysis
This change does not violate any tool requirements and is covered by existing tool requirements
This change does not violate any design decisions
Otherwise I have created a ticket for new tool qualification
Rationale: This is a security enhancement that adds monitoring without modifying workflow behavior. No new tools or dependencies are introduced that would violate existing requirements.

✅ Checklist
Added/updated documentation for new or changed features
(Documentation: Changes are self-contained in workflow definitions with descriptive step name)
Added/updated tests to cover the changes
(Not applicable: Workflow changes; no unit tests needed)
Followed project coding standards and guidelines
(Consistent YAML formatting and follows GitHub Actions best practices)

@github-actions
Copy link
Copy Markdown

License Check Results

🚀 The license check job ran with the Bazel command:

bazel run --lockfile_mode=error //src:license-check

Status: ⚠️ Needs Review

Click to expand output
[License Check Output]
Extracting Bazel installation...
Starting local Bazel server (8.4.2) and connecting to it...
INFO: Invocation ID: 354f46f8-015c-443a-846a-afdab5f1e63e
Computing main repo mapping: 
Loading: 
Loading: 0 packages loaded
Loading: 0 packages loaded
WARNING: Target pattern parsing failed.
ERROR: Skipping '//src:license-check': no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
ERROR: no such target '//src:license-check': target 'license-check' not declared in package 'src' defined by /home/runner/work/docs-as-code/docs-as-code/src/BUILD
INFO: Elapsed time: 5.630s
INFO: 0 processes.
ERROR: Build did NOT complete successfully
ERROR: Build failed. Not running target

@github-actions
Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants