Skip to content

Update workflow permissions and enhance environment variable#91

Merged
frasermolyneux merged 2 commits into
mainfrom
feature/gh-workflow-enhancements
Feb 10, 2026
Merged

Update workflow permissions and enhance environment variable#91
frasermolyneux merged 2 commits into
mainfrom
feature/gh-workflow-enhancements

Conversation

@frasermolyneux
Copy link
Copy Markdown
Owner

This pull request makes several improvements to the GitHub Actions workflows, primarily focusing on permissions, environment variable handling, and workflow conditions. The changes enhance security and flexibility for Terraform plan jobs, and improve dependency review feedback.

Workflow condition and environment variable improvements:

  • Updated the conditions for running Terraform plan jobs in pr-verify.yml to remove explicit exclusion of Dependabot PRs, relying instead on label-based control. This simplifies workflow logic and ensures more predictable execution. [1] [2]
  • Changed the way Azure credentials are set for Terraform jobs by introducing environment variables (env:) and conditional assignment for AZURE_CLIENT_ID to support Dependabot PRs using a separate client ID. This improves security and flexibility for CI/CD jobs. [1] [2]

Permissions and dependency review enhancements:

  • Increased the pull-requests permission from read to write in codequality.yml, allowing the dependency review action to post summary comments directly in PRs.
  • Enabled always posting dependency review summaries in PRs by setting comment-summary-in-pr: always for the dependency review action, improving visibility of dependency changes.

Workflow documentation update:

  • Updated comments in pr-verify.yml to clarify workflow control, removing outdated references to Dependabot exclusion.

Copilot AI review requested due to automatic review settings February 9, 2026 22:36
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 9, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copy link
Copy Markdown

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

Updates GitHub Actions workflows to refine Terraform plan execution logic and improve dependency review feedback on pull requests, aligning CI/CD behavior with label-driven controls and enabling PR comment output for dependency changes.

Changes:

  • Adjust Terraform plan job conditions in pr-verify.yml to rely on labels (and add conditional Azure client ID selection via job env).
  • Increase pull-requests permission and enable always-on PR summary comments for dependency review in codequality.yml.

Reviewed changes

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

File Description
.github/workflows/pr-verify.yml Updates Terraform plan job if: conditions and centralizes Azure credential values via job-level env, including a Dependabot-specific client ID option.
.github/workflows/codequality.yml Grants PR write permission to dependency review job and configures dependency review to always comment a summary in PRs.

Comment thread .github/workflows/pr-verify.yml
@sonarqubecloud
Copy link
Copy Markdown

@frasermolyneux frasermolyneux merged commit 289b49d into main Feb 10, 2026
18 checks passed
@frasermolyneux frasermolyneux deleted the feature/gh-workflow-enhancements branch February 10, 2026 04:22
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.

2 participants