Skip to content

Conversation

@rjaegers
Copy link
Member

@rjaegers rjaegers commented Oct 6, 2025

🚀 Hey, I have created a Pull Request

Description of changes

This pull request focuses on improving the clarity and maintainability of GitHub workflow and configuration files. The key changes include adding explicit comments to workflow permissions that describe their necessity for specific actions, introducing cooldown periods for Dependabot updates, and updating workflow actions and logic for better reliability and readability.

Workflow permission documentation and improvements:

  • Added detailed comments to workflow permission scopes across multiple files, clarifying why each permission is required for the associated action or tool (e.g., posting PR comments, uploading SARIF files, modifying releases, etc.). This enhances transparency and future maintainability. (.github/workflows/continuous-integration.yml, .github/workflows/linting-formatting.yml, .github/workflows/ossf-scorecard.yml, .github/workflows/pr-conventional-title.yml, .github/workflows/pr-image-cleanup.yml, .github/workflows/pr-report.yml, .github/workflows/release-build.yml, .github/workflows/release-published.yml, .github/workflows/update-dependencies.yml, .github/workflows/vulnerability-scan.yml, .github/workflows/image-cleanup.yml, .github/workflows/issue-cleanup.yml, .github/workflows/issue-creation-tool-versions.yml) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]

Dependabot configuration enhancements:

  • Introduced a cooldown period of 7 days for all package ecosystems in .github/dependabot.yml to reduce the frequency of update PRs and help manage update noise. [1] [2] [3]

Workflow logic and action updates:

  • Updated the version of reviewdog/action-suggester in .github/workflows/linting-formatting.yml to v1.24.0 for improved features and reliability.
  • Refactored environment variable usage in .github/workflows/wc-acceptance-test.yml for better readability and future extensibility, and improved secret setting logic.

Workflow structure and cleanup:

  • Removed the unused .github/workflows/social-interaction.yml workflow, likely to streamline workflow management and reduce unnecessary automation.

General workflow permission structure:

  • Standardized the use of empty permission blocks (permissions: {}) in workflow files where no global permissions are needed, supporting the principle of least privilege. (.github/workflows/linting-formatting.yml, .github/workflows/ossf-scorecard.yml, .github/workflows/release-please.yml) [1] [2] [3]

✔️ Checklist

  • I have followed the contribution guidelines for this repository
  • I have added tests for new behavior, and have not broken any existing tests
  • I have added or updated relevant documentation
  • I have verified that all added components are accounted for in the SBOM

@rjaegers rjaegers requested a review from a team as a code owner October 6, 2025 11:34
Copilot AI review requested due to automatic review settings October 6, 2025 11:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR hardens GitHub Actions security by replacing third-party action dependencies with native GitHub CLI commands for PR comment management. The changes eliminate external action dependencies while maintaining the same functionality for posting and removing PR title validation comments.

  • Replaced marocchino/sticky-pull-request-comment action with native gh CLI commands
  • Added explicit permission documentation for clarity
  • Implemented proper sticky comment functionality using HTML markers and GitHub API

rjaegers and others added 2 commits October 6, 2025 11:44
Rely on the content in the README, CONTRIBUTING and GitHubs native functionality surrounding that documentation to help first-time contributers.
Copilot AI review requested due to automatic review settings October 6, 2025 11:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Copilot AI review requested due to automatic review settings October 6, 2025 12:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

@rjaegers rjaegers changed the title Ci/harden action security Ci/ harden action security Oct 6, 2025
Copilot AI review requested due to automatic review settings October 6, 2025 12:33
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

⚠️MegaLinter analysis: Success with warnings

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 21 0 0 0.54s
✅ DOCKERFILE hadolint 2 0 0 0.78s
✅ GHERKIN gherkin-lint 6 0 0 2.41s
✅ JSON npm-package-json-lint yes no no 0.46s
✅ JSON prettier 15 2 0 0 0.54s
✅ JSON v8r 15 0 0 7.97s
✅ MARKDOWN markdownlint 11 0 0 0 0.85s
✅ MARKDOWN markdown-table-formatter 11 0 0 0 0.24s
✅ REPOSITORY gitleaks yes no no 0.97s
✅ REPOSITORY git_diff yes no no 0.01s
✅ REPOSITORY grype yes no no 28.88s
✅ REPOSITORY secretlint yes no no 1.01s
✅ REPOSITORY syft yes no no 1.99s
✅ REPOSITORY trivy yes no no 4.81s
✅ REPOSITORY trivy-sbom yes no no 0.25s
✅ REPOSITORY trufflehog yes no no 3.03s
⚠️ SPELL lychee 72 2 0 13.85s
✅ YAML prettier 27 0 0 0 1.28s
✅ YAML v8r 27 0 0 8.39s
✅ YAML yamllint 27 0 0 0.78s

Detailed Issues

⚠️ SPELL / lychee - 2 errors
[IGNORED] docker://pandoc/extra:3.7.0@sha256:a703d335fa237f8fc3303329d87e2555dca5187930da38bfa9010fa4e690933a | Unsupported: Error creating request client: builder error for url (docker://pandoc/extra:3.7.0@sha256:a703d335fa237f8fc3303329d87e2555dca5187930da38bfa9010fa4e690933a)
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Network error: error sending request for url (https://www.conventionalcommits.org/en/v1.0.0/)
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Error (cached)
[IGNORED] https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/philips-software/amp-devcontainer | Unsupported: Error creating request client: builder error for url (vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/philips-software/amp-devcontainer)
📝 Summary
---------------------
🔍 Total..........122
✅ Successful.....118
⏳ Timeouts.........0
🔀 Redirected.......0
👻 Excluded.........0
❓ Unknown..........0
🚫 Errors...........2

Errors in .github/CONTRIBUTING.md
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Network error: error sending request for url (https://www.conventionalcommits.org/en/v1.0.0/)

Errors in README.md
[ERROR] https://www.conventionalcommits.org/en/v1.0.0/ | Error (cached)

See detailed reports in MegaLinter artifacts

Your project could benefit from a custom flavor, which would allow you to run only the linters you need, and thus improve runtime performances. (Skip this info by defining FLAVOR_SUGGESTIONS: false)

  • Documentation: Custom Flavors
  • Command: npx [email protected] --custom-flavor-setup --custom-flavor-linters ACTION_ACTIONLINT,DOCKERFILE_HADOLINT,GHERKIN_GHERKIN_LINT,JSON_V8R,JSON_PRETTIER,JSON_NPM_PACKAGE_JSON_LINT,MARKDOWN_MARKDOWNLINT,MARKDOWN_MARKDOWN_TABLE_FORMATTER,REPOSITORY_GIT_DIFF,REPOSITORY_GITLEAKS,REPOSITORY_GRYPE,REPOSITORY_SECRETLINT,REPOSITORY_SYFT,REPOSITORY_TRIVY,REPOSITORY_TRIVY_SBOM,REPOSITORY_TRUFFLEHOG,SPELL_LYCHEE,YAML_PRETTIER,YAML_YAMLLINT,YAML_V8R

MegaLinter is graciously provided by OX Security

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-rust:edgeghcr.io/philips-software/amp-devcontainer-rust:pr-967

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 538.64 MB 538.65 MB +390 B (+0%) 🔼
linux/arm64 495.14 MB 495.14 MB +609 B (+0%) 🔼

Copilot AI review requested due to automatic review settings October 6, 2025 12:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-cpp:edgeghcr.io/philips-software/amp-devcontainer-cpp:pr-967

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 692.84 MB 692.84 MB +511 B (+0%) 🔼
linux/arm64 675.88 MB 675.88 MB +733 B (+0%) 🔼

@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2025

Test Results

 5 files  +1   5 suites  +1   3m 41s ⏱️ + 1m 17s
31 tests +1  31 ✅ +1  0 💤 ±0  0 ❌ ±0 
65 runs  +1  65 ✅ +1  0 💤 ±0  0 ❌ ±0 

Results for commit b387a42. ± Comparison against base commit 610993d.

♻️ This comment has been updated with latest results.

Copilot AI review requested due to automatic review settings October 6, 2025 12:55
Copilot AI review requested due to automatic review settings October 22, 2025 17:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Ron <[email protected]>
Copilot AI review requested due to automatic review settings October 22, 2025 17:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

@rjaegers rjaegers changed the title ci: harden action security ci: fix zizmor findings Oct 22, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-rust:edgeghcr.io/philips-software/amp-devcontainer-rust:pr-967

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 536.92 MB 536.92 MB 860 B (0%) 🔽
linux/arm64 493.6 MB 493.6 MB 140 B (0%) 🔽

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

📦 Container Size Analysis

Note

Comparing ghcr.io/philips-software/amp-devcontainer-cpp:edgeghcr.io/philips-software/amp-devcontainer-cpp:pr-967

📈 Size Comparison Table

OS/Platform Previous Current Change Trend
linux/amd64 693.65 MB 693.65 MB +2.06 kB (+0%) 🔼
linux/arm64 676.93 MB 676.93 MB +1.01 kB (+0%) 🔼

Copilot AI review requested due to automatic review settings October 22, 2025 18:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings October 24, 2025 10:28
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Copilot AI review requested due to automatic review settings October 27, 2025 09:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 20 out of 20 changed files in this pull request and generated no new comments.

@rjaegers rjaegers enabled auto-merge October 27, 2025 09:42
@sonarqubecloud
Copy link

@rjaegers rjaegers added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 48bab37 Oct 27, 2025
33 checks passed
@rjaegers rjaegers deleted the ci/harden-action-security branch October 27, 2025 10:34
@github-actions
Copy link
Contributor

Pull Request Report (#967)

Static measures

Description Value
Number of added lines 80
Number of deleted lines 108
Number of changed files 20
Number of commits 26
Number of reviews 16
Number of comments (w/o review comments) 9
Number of reviews that contains a comment to resolve 15
Number of reviews that requested a change from the author 0
Number of reviews that approved the Pull Request 1
Get the total number of participants of a Pull Request 8

Time related measures

Description Value
PR lead time (from creation to close of PR) 21 Days
Time that was spend on the branch before the PR was created 3.3 Min
Time that was spend on the branch before the PR was merged 21 Days
Time to merge after last review 1.3 Hours

Status check related measures

Description Value
Total runtime for last status check run (Workflow for PR) 45 Min
Total time spend in last status check run on PR 28.3 Min

@github-actions
Copy link
Contributor

🎉 Hooray! The changes in this pull request went live with the release of v6.5.3 🎉

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants