Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow for running ScriptAnalyzer #236464

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

Trenly
Copy link
Contributor

@Trenly Trenly commented Mar 10, 2025

Checklist for Pull Requests

This PR makes it so ScriptAnalyzer errors are identified by a workflow. Warnings and Informational items are still output in the workflow logs, but are non-blocking. This workflow should only trigger when a PowerShell script is added or modified

Once added, the repository rules should make this a required check

cc @denelon / @mdanish-kh / @stephengillie

image

Microsoft Reviewers: Open in CodeFlow

@Trenly Trenly requested review from denelon and a team as code owners March 10, 2025 18:15
@wingetbot
Copy link
Collaborator

Service Badge  Service Badge  

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Attention This work item needs to be reviewed by a member of the core team. label Mar 10, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Moderator-Approved One of the Moderators has reviewed and approved this PR label Mar 10, 2025
@denelon denelon merged commit 2c5e71a into microsoft:master Mar 10, 2025
2 checks passed
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Attention This work item needs to be reviewed by a member of the core team. label Mar 10, 2025
}

# If errors are found, exit with a non-zero exit code to fail the job
if ($results.where({$_.Severity-eq 'Error'})) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if ($results.where({$_.Severity-eq 'Error'})) {
if ($results.where({$_.Severity -eq 'Error'})) {

nit: style

@mdanish-kh
Copy link
Contributor

didn't see denelon had merged it lol

@Trenly
Copy link
Contributor Author

Trenly commented Mar 10, 2025

Fixed in latest PR

@Trenly Trenly deleted the AddScriptAnalyzeWorkflow branch March 10, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Moderator-Approved One of the Moderators has reviewed and approved this PR Project-File
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants