Skip to content

update ci/cd#262

Open
xuan-cao-swi wants to merge 2 commits into
mainfrom
security-fix-ci
Open

update ci/cd#262
xuan-cao-swi wants to merge 2 commits into
mainfrom
security-fix-ci

Conversation

@xuan-cao-swi
Copy link
Copy Markdown
Contributor

Description

Test (if applicable)

Copilot AI review requested due to automatic review settings May 27, 2026 18:24
@xuan-cao-swi xuan-cao-swi requested review from a team as code owners May 27, 2026 18:24
Copy link
Copy Markdown
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 CI/CD workflows by pinning GitHub Actions to specific commit SHAs and by adding explicit permissions blocks to reduce default GITHUB_TOKEN privileges.

Changes:

  • Pin commonly used actions (checkout, setup-ruby, codecov, upload-sarif, artifact, AWS creds, etc.) to commit SHAs.
  • Add workflow-level permissions: contents: read to multiple workflows to follow least-privilege defaults.

Reviewed changes

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

Show a summary per file
File Description
.github/workflows/verify_install.yml Pins actions/checkout and ruby/setup-ruby to SHAs for install verification runs.
.github/workflows/run_unit_tests.yml Adds explicit token permissions and pins checkout + codecov actions to SHAs.
.github/workflows/rubocop-analysis.yml Adds permissions and pins checkout, setup-ruby, and upload-sarif actions to SHAs.
.github/workflows/codeql_analysis.yml Adds workflow-level contents: read while keeping CodeQL pinned to SHAs.
.github/workflows/ci-reverse-lab.yml Adds permissions and pins checkout, setup-ruby, and ReverseLabs scanner to SHAs.
.github/workflows/ci-markdownlint.yml Adds permissions and pins checkout + markdownlint action to SHAs.
.github/workflows/ci-markdown-link.yml Adds permissions and pins checkout + linkspector action to SHAs.
.github/workflows/build_publish_lambda_layer.yml Pins checkout/artifact/download/AWS creds/ReverseLabs scanner actions to SHAs.
.github/workflows/build_for_github_package.yml Adds permissions and pins checkout/setup-ruby/artifact/download/ReverseLabs scanner actions to SHAs.
.github/workflows/build_and_release_gem.yml Adds workflow-level permissions and pins checkout/setup-ruby/release-gem/github-script/artifact/download/ReverseLabs scanner actions to SHAs.

Comment thread .github/workflows/rubocop-analysis.yml
Comment thread .github/workflows/build_for_github_package.yml
Comment thread .github/workflows/ci-markdown-link.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

LGTM but wondering how accurate the copilot review about needing write permission because the lint and rubocop actions apparently ran fine with your initial change (https://github.com/solarwinds/apm-ruby/pull/262/commits, click the checkmark next to your first commit).

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants