Skip to content

CI workflow improvements#1367

Merged
roosterfish merged 7 commits intocanonical:mainfrom
simondeziel:ci-workflow
May 5, 2026
Merged

CI workflow improvements#1367
roosterfish merged 7 commits intocanonical:mainfrom
simondeziel:ci-workflow

Conversation

@simondeziel
Copy link
Copy Markdown
Member

No description provided.

@simondeziel simondeziel requested a review from Copilot April 30, 2026 23:29
@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

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

This PR updates GitHub Actions workflows to improve CI/security automation for the repository, including adding a zizmor workflow and adjusting when existing workflows run.

Changes:

  • Add a new zizmor GitHub Actions security analysis workflow that can upload SARIF results.
  • Broaden workflow/job gating conditions from github.repository == 'canonical/microcloud' to github.repository_owner == 'canonical' across several workflows.
  • Update the snap build trigger job to use a different reusable action and tighten git staging; add explicit SSH-agent key unloading.

Reviewed changes

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

File Description
.github/workflows/zizmor.yml Adds zizmor-based workflow for GHA security analysis with SARIF upload permissions.
.github/workflows/tests.yml Broadens CI gating to owner-based checks; switches snap build action ref and adjusts SSH key handling.
.github/workflows/commits.yml Broadens gating to owner-based checks; removes CLA check step; sets workflow permissions to {}.
.github/workflows/codeql.yml Broadens CodeQL job gating to owner-based checks.

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

Comment thread .github/workflows/tests.yml
Comment thread .github/workflows/tests.yml
Comment thread .github/workflows/tests.yml
Comment thread .github/workflows/commits.yml
Comment thread .github/workflows/codeql.yml
Comment thread .github/workflows/zizmor.yml
@simondeziel simondeziel marked this pull request as ready for review May 1, 2026 13:13
@simondeziel simondeziel requested a review from roosterfish May 1, 2026 13:13
Comment thread .github/workflows/zizmor.yml
Comment thread .github/workflows/zizmor.yml
Comment thread .github/workflows/zizmor.yml Outdated
roosterfish
roosterfish previously approved these changes May 5, 2026
Copy link
Copy Markdown
Contributor

@roosterfish roosterfish left a comment

Choose a reason for hiding this comment

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

Thanks!

@roosterfish
Copy link
Copy Markdown
Contributor

A fix for the linter is in #1369

@roosterfish
Copy link
Copy Markdown
Contributor

Can be rebased to unblock the merge.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
No other file should be altered anyway.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
@roosterfish roosterfish merged commit fb4dadc into canonical:main May 5, 2026
25 of 29 checks passed
@simondeziel simondeziel deleted the ci-workflow branch May 5, 2026 12:02
Comment thread .github/workflows/tests.yml
roosterfish added a commit that referenced this pull request May 7, 2026
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.

4 participants