Skip to content

Conversation

@rjaegers
Copy link
Member

@rjaegers rjaegers commented Jun 20, 2025

🚀 Hey, I have created a Pull Request

Description of changes

This PR fixes permissions for the release jobs. They need to write to the release, and therefor need content: write permissions.

✔️ 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 added 2 commits June 20, 2025 19:45
The release build jobs need 'contents: write' permissions to be able to update the release.
While convenient it does not follow the rule of minimal privileges
Copilot AI review requested due to automatic review settings June 20, 2025 19:55
@rjaegers rjaegers requested a review from a team as a code owner June 20, 2025 19:55
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 refines CI workflows by replacing inherited secrets with explicit TEST_GITHUB_* secrets and tightening job permissions to enable safe release operations.

  • Removed secrets: inherit and specified explicit TEST_GITHUB_* secrets for relevant jobs
  • Granted contents: write permission to the release notes template and adjusted release job dependencies
  • Updated CI and release workflows to use explicit secrets for the build-push-test reusable job

Reviewed Changes

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

File Description
.github/workflows/wc-build-push-test.yml Removed inherited secrets, added explicit secrets for acceptance-test only
.github/workflows/release-build.yml Added explicit secrets to build-push-test, granted contents write, updated job needs
.github/workflows/continuous-integration.yml Added explicit secrets to build-push-test job
Comments suppressed due to low confidence (2)

.github/workflows/wc-build-push-test.yml:51

  • The integration-test job no longer inherits any secrets but doesn’t specify explicit ones. If it requires authentication (e.g., TEST_GITHUB_TOKEN), add the necessary secrets block to avoid job failures.
    uses: ./.github/workflows/wc-integration-test.yml

.github/workflows/release-build.yml:20

  • [nitpick] Defining the same set of TEST_GITHUB_* secrets in multiple workflows leads to duplication. Consider centralizing these secrets in a reusable workflow or a shared environment to simplify maintenance.
    secrets:

@github-actions
Copy link
Contributor

github-actions bot commented Jun 20, 2025

🦙 MegaLinter status: ⚠️ WARNING

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ ACTION actionlint 18 0 0 0.62s
✅ DOCKERFILE hadolint 2 0 0 0.86s
✅ GHERKIN gherkin-lint 2 0 0 0.91s
✅ JSON npm-package-json-lint yes no no 0.43s
✅ JSON prettier 16 1 0 0 0.49s
✅ JSON v8r 16 0 0 7.6s
✅ MARKDOWN markdownlint 9 0 0 0 0.89s
✅ MARKDOWN markdown-table-formatter 9 0 0 0 0.29s
✅ REPOSITORY checkov yes no no 16.99s
✅ REPOSITORY gitleaks yes no no 0.41s
✅ REPOSITORY git_diff yes no no 0.01s
⚠️ REPOSITORY grype yes no 2 23.31s
✅ REPOSITORY secretlint yes no no 0.95s
✅ REPOSITORY syft yes no no 1.9s
✅ REPOSITORY trivy yes no no 6.79s
✅ REPOSITORY trivy-sbom yes no no 0.23s
✅ REPOSITORY trufflehog yes no no 4.47s
✅ SPELL lychee 63 0 0 2.19s
✅ YAML prettier 24 0 0 0 0.92s
✅ YAML v8r 24 0 0 6.79s
✅ YAML yamllint 24 0 0 0.95s

See detailed report in MegaLinter reports

MegaLinter is graciously provided by OX Security

@github-actions
Copy link
Contributor

github-actions bot commented Jun 20, 2025

📦 Container Size Analysis

Comparing ghcr.io/philips-software/amp-devcontainer-rust:edge to ghcr.io/philips-software/amp-devcontainer-rust:pr-831

📈 Size Comparison Table

OS/Platform Previous Size Current Size Change Trend
linux/amd64 481.29M 481.29M 0.00 (+0.00%) 🔄
linux/arm64 432.76M 432.76M 0.00 (+0.00%) 🔄

@github-actions
Copy link
Contributor

github-actions bot commented Jun 20, 2025

📦 Container Size Analysis

Comparing ghcr.io/philips-software/amp-devcontainer-cpp:edge to ghcr.io/philips-software/amp-devcontainer-cpp:pr-831

📈 Size Comparison Table

OS/Platform Previous Size Current Size Change Trend
linux/amd64 691.27M 691.27M 0.00 (+0.00%) 🔄
linux/arm64 673.42M 673.42M 0.00 (+0.00%) 🔄

@github-actions
Copy link
Contributor

github-actions bot commented Jun 20, 2025

Test Results

 4 files  ±0   4 suites  ±0   2m 25s ⏱️ -1s
31 tests ±0  31 ✅ ±0  0 💤 ±0  0 ❌ ±0 
66 runs  ±0  66 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 2f54556. ± Comparison against base commit fd545f0.

♻️ This comment has been updated with latest results.

@rjaegers rjaegers enabled auto-merge (squash) June 24, 2025 08:39
@sonarqubecloud
Copy link

@rjaegers rjaegers merged commit fcc3527 into main Jun 24, 2025
34 checks passed
@rjaegers rjaegers deleted the feature/fix-release-build-job-permissions branch June 24, 2025 08:47
@github-actions
Copy link
Contributor

Pull Request Report (#831)

Static measures

Description Value
Number of added lines 37
Number of deleted lines 4
Number of changed files 4
Number of commits 5
Number of reviews 2
Number of comments (w/o review comments) 5
Number of reviews that contains a comment to resolve 1
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 5

Time related measures

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

Status check related measures

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

@github-actions
Copy link
Contributor

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

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