Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Harden GitHub Actions workflow configuration#45

Merged
achamayou merged 2 commits into
mainfrom
copilot/update-codeql-and-workflow-settings
Jun 11, 2026
Merged

Harden GitHub Actions workflow configuration#45
achamayou merged 2 commits into
mainfrom
copilot/update-codeql-and-workflow-settings

Conversation

Copilot AI commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Tightens workflow security and reliability across CI, CodeQL, and Pages. The updates remove unnecessary persisted checkout credentials, align CodeQL permissions/scheduling with recommended defaults, and make package installation/deployment behavior more deterministic.

  • Checkout credential scope

    • Adds persist-credentials: false to checkout steps in CI, CodeQL, and documentation workflows.
  • CodeQL workflow

    • Enables the weekly scheduled scan.
    • Adds actions: read to job permissions.
    • Replaces undefined matrix.build_type build paths with a fixed build directory.
  • Pages workflow

    • Adds a Pages concurrency group to avoid overlapping deployments.
  • APT reliability

    • Runs apt-get update before installs.
    • Uses apt-get -y install consistently.

@achamayou achamayou marked this pull request as ready for review June 9, 2026 19:46
@achamayou achamayou requested a review from a team as a code owner June 9, 2026 19:46
Copilot AI review requested due to automatic review settings June 9, 2026 19:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 the repository’s GitHub Actions workflows by tightening credential handling, making installs more deterministic, and improving Pages/CodeQL reliability and security defaults.

Changes:

  • Disable persisted checkout credentials (persist-credentials: false) across CI, CodeQL, and docs workflows.
  • Enable scheduled CodeQL scanning, add actions: read permission, and fix the build output directory to a deterministic build/ path.
  • Improve Ubuntu package install reliability by running apt-get update before apt-get -y install, and add a Pages concurrency group to prevent overlapping deployments.

Reviewed changes

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

File Description
.github/workflows/codeql-analysis.yml Enables scheduled CodeQL scans, tightens permissions, disables persisted checkout credentials, and fixes build directory usage.
.github/workflows/ci.yml Makes apt installs deterministic and disables persisted checkout credentials.
.github/workflows/build-docs.yml Adds Pages deployment concurrency, disables persisted checkout credentials, and improves apt install reliability.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build-docs.yml Outdated
@achamayou achamayou merged commit 9a7c2d3 into main Jun 11, 2026
9 checks passed
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