{"id":6326365,"name":"microsoft/psscriptanalyzer-action","ecosystem":"actions","description":"Run PSScriptAnalyzer","homepage":null,"licenses":"mit","normalized_licenses":["MIT"],"repository_url":"https://github.com/microsoft/psscriptanalyzer-action","keywords_array":[],"namespace":"microsoft","versions_count":3,"first_release_published_at":"2021-04-21T01:00:07.000Z","latest_release_published_at":"2022-09-13T18:02:38.000Z","latest_release_number":"v1.1","last_synced_at":"2026-03-24T14:47:10.788Z","created_at":"2023-02-13T13:10:10.969Z","updated_at":"2026-03-24T14:47:10.788Z","registry_url":"https://github.com/microsoft/psscriptanalyzer-action","install_command":null,"documentation_url":null,"metadata":{"name":"Run PSScriptAnalyzer","author":"ankatopo","description":"Run PSScriptAnalyzer","branding":{"icon":"check","color":"gray-dark"},"inputs":{"path":{"description":"Specifies the path to the scripts or module to be analyzed. Wildcard characters are supported.","required":true,"default":".\\"},"customRulePath":{"description":"Uses only the custom rules defined in the specified paths to the analysis. To still use the built-in rules, add the -IncludeDefaultRules switch.","required":false},"recurseCustomRulePath":{"description":"Adds rules defined in subdirectories of the CustomRulePath location.","required":false},"excludeRule":{"description":"Omits the specified rules from the Script Analyzer test. Wildcard characters are supported.","required":false},"includeDefaultRules":{"description":"Invoke default rules along with Custom rules.","required":false},"includeRule":{"description":"Runs only the specified rules in the Script Analyzer test.","required":false},"severity":{"description":"After running Script Analyzer with all rules, this parameter selects rule violations with the specified severity.","required":false},"recurse":{"description":"Runs Script Analyzer on the files in the Path directory and all subdirectories recursively.","required":false},"suppressedOnly":{"description":"Returns rules that are suppressed, instead of analyzing the files in the path.","required":false},"fix":{"description":"Fixes certain warnings which contain a fix in their DiagnosticRecord.","required":false},"enableExit":{"description":"Exits PowerShell and returns an exit code equal to the number of error records.","required":false},"settings":{"description":"File path that contains user profile or hash table for ScriptAnalyzer.","required":false},"output":{"description":"Specifies where the path for the sarif file","required":true,"default":"results.sarif"},"ignorePattern":{"description":"Exclude specific files from the sarif results. Uses regex pattern.","required":false}},"runs":{"using":"composite","steps":[{"name":"Run PSScriptAnalyzer and ConvertToSARIF","shell":"pwsh","run":"$analyzerModule = Get-Module -ListAvailable -Name PSScriptAnalyzer\nif ($null -eq $analyzerModule) {\n  Install-Module -Name PSScriptAnalyzer -Force\n}\n\n$sarifModule = Get-Module -ListAvailable -Name ConvertToSARIF\nif ($null -eq $sarifModule) {\n  Install-Module -Name ConvertToSARIF -Force\n}\nImport-Module -Name ConvertToSARIF -Force\n\n$htPSA = [ordered]@{ Path = '${{ inputs.path }}'; }\nWrite-Output \"Modules installed, now running tests.\"\nif(![string]::IsNullOrEmpty('${{ inputs.customRulePath }}')) { $htPSA.add('CustomRulePath', @(${{ inputs.customRulePath }})) }\nif(![string]::IsNullOrEmpty('${{ inputs.recurseCustomRulePath }}')) { $htPSA.add('RecurseCustomRulePath', $true) }\nif(![string]::IsNullOrEmpty('${{ inputs.excludeRule }}')) { $htPSA.add('ExcludeRule', @(${{ inputs.excludeRule }})) }\nif(![string]::IsNullOrEmpty('${{ inputs.includeDefaultRules }}') -and '${{ inputs.includeDefaultRules }}' -ne 'false') { $htPSA.add('IncludeDefaultRules', $true) }\nif(![string]::IsNullOrEmpty('${{ inputs.includeRule }}')) { $htPSA.add('IncludeRule', @(${{ inputs.includeRule }})) }\nif(![string]::IsNullOrEmpty('${{ inputs.severity }}')) { $htPSA.add('Severity', @(${{ inputs.severity }})) }\nif(![string]::IsNullOrEmpty('${{ inputs.recurse }}') -and '${{ inputs.includeDefaultRules }}' -ne 'false') { $htPSA.add('Recurse', $true) }\nif(![string]::IsNullOrEmpty('${{ inputs.fix }}')) { $htPSA.add('Fix', $true) }\nif(![string]::IsNullOrEmpty('${{ inputs.enableExit }}')) { $htPSA.add('EnableExit', $true) }\nif(![string]::IsNullOrEmpty('${{ inputs.settings }}')) { $htPSA.add('Settings', '${{ inputs.settings }}') }\n$htCTS = [ordered]@{ FilePath = '${{ inputs.output }}'; }\nif(![string]::IsNullOrEmpty('${{ inputs.ignorePattern }}')) { $htCTS.add('IgnorePattern', '${{ inputs.ignorePattern }}') }\nInvoke-ScriptAnalyzer @htPSA | ConvertTo-SARIF @htCTS\n"}]},"default_branch":"main","path":null},"repo_metadata":{"id":43466476,"uuid":"359990355","full_name":"microsoft/psscriptanalyzer-action","owner":"microsoft","description":"GitHub Action to run PSScriptAnalyzer to your repository and produce a SARIF file","archived":false,"fork":false,"pushed_at":"2024-06-27T12:19:13.000Z","size":16,"stargazers_count":37,"open_issues_count":7,"forks_count":12,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-10-10T00:13:26.534Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2021-04-21T00:48:28.000Z","updated_at":"2025-10-06T09:35:35.000Z","dependencies_parsed_at":"2024-02-04T20:34:21.508Z","dependency_job_id":"a7f0775a-0645-444e-92ab-892867bc7053","html_url":"https://github.com/microsoft/psscriptanalyzer-action","commit_stats":{"total_commits":16,"total_committers":7,"mean_commits":"2.2857142857142856","dds":0.6875,"last_synced_commit":"7a0da25f33985767f15f93140306528900744195"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/microsoft/psscriptanalyzer-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/psscriptanalyzer-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/sbom","scorecard":{"id":643459,"data":{"date":"2025-08-11","repo":{"name":"github.com/microsoft/psscriptanalyzer-action","commit":"7a0da25f33985767f15f93140306528900744195"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":3,"reason":"Found 5/13 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/CI.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/psscriptanalyzer-action/CI.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/CI.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/microsoft/psscriptanalyzer-action/CI.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T11:25:54.062Z","repository_id":43466476,"created_at":"2025-08-21T11:25:54.062Z","updated_at":"2025-08-21T11:25:54.062Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002374,"owners_count":26083356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"microsoft","name":"Microsoft","uuid":"6154722","kind":"organization","description":"Open source projects and samples from Microsoft","email":"opensource@microsoft.com","website":"https://opensource.microsoft.com","location":"Redmond, WA","twitter":"OpenAtMicrosoft","company":null,"icon_url":"https://avatars.githubusercontent.com/u/6154722?v=4","repositories_count":7413,"last_synced_at":"2025-10-10T00:07:37.919Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/microsoft","funding_links":[],"total_stars":3539276,"followers":104311,"following":0,"created_at":"2022-11-02T16:20:12.368Z","updated_at":"2025-10-10T00:07:37.919Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft/repositories"},"tags":[{"name":"v1.1","sha":"6b2948b1944407914a58661c49941824d149734f","kind":"commit","published_at":"2022-09-13T18:02:38.000Z","download_url":"https://codeload.github.com/microsoft/psscriptanalyzer-action/tar.gz/v1.1","html_url":"https://github.com/microsoft/psscriptanalyzer-action/releases/tag/v1.1","dependencies_parsed_at":"2023-05-31T00:53:42.786Z","dependency_job_id":null,"purl":"pkg:github/microsoft/psscriptanalyzer-action@v1.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/tags/v1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/tags/v1.1/manifests"},{"name":"v1.0","sha":"2044ae068e37d0161fa2127de04c19633882f061","kind":"commit","published_at":"2021-04-21T01:00:07.000Z","download_url":"https://codeload.github.com/microsoft/psscriptanalyzer-action/tar.gz/v1.0","html_url":"https://github.com/microsoft/psscriptanalyzer-action/releases/tag/v1.0","dependencies_parsed_at":"2023-05-31T00:53:43.112Z","dependency_job_id":null,"purl":"pkg:github/microsoft/psscriptanalyzer-action@v1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/tags/v1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/tags/v1.0/manifests"},{"name":"v0.1-alpha","sha":"2044ae068e37d0161fa2127de04c19633882f061","kind":"commit","published_at":"2021-04-21T01:00:07.000Z","download_url":"https://codeload.github.com/microsoft/psscriptanalyzer-action/tar.gz/v0.1-alpha","html_url":"https://github.com/microsoft/psscriptanalyzer-action/releases/tag/v0.1-alpha","dependencies_parsed_at":"2023-05-31T00:53:43.643Z","dependency_job_id":null,"purl":"pkg:github/microsoft/psscriptanalyzer-action@v0.1-alpha","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/tags/v0.1-alpha","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/tags/v0.1-alpha/manifests"}]},"repo_metadata_updated_at":"2025-10-11T15:11:35.651Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":972,"rankings":{"downloads":null,"dependent_repos_count":0.8651560766914911,"dependent_packages_count":0.0,"stargazers_count":7.761052131199493,"forks_count":6.14165742354619,"docker_downloads_count":null,"average":3.6919664078592933},"purl":"pkg:githubactions/microsoft/psscriptanalyzer-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/microsoft/psscriptanalyzer-action","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/microsoft/psscriptanalyzer-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/microsoft/psscriptanalyzer-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-17T20:24:33.707Z","issues_count":3,"pull_requests_count":7,"avg_time_to_close_issue":27950306.0,"avg_time_to_close_pull_request":13001331.166666666,"issues_closed_count":3,"pull_requests_closed_count":6,"pull_request_authors_count":5,"issue_authors_count":3,"avg_comments_per_issue":0.0,"avg_comments_per_pull_request":2.2857142857142856,"merged_pull_requests_count":5,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":1,"past_year_pull_requests_count":4,"past_year_avg_time_to_close_issue":14680629.0,"past_year_avg_time_to_close_pull_request":8190889.0,"past_year_issues_closed_count":1,"past_year_pull_requests_closed_count":3,"past_year_pull_request_authors_count":3,"past_year_issue_authors_count":1,"past_year_avg_comments_per_issue":0.0,"past_year_avg_comments_per_pull_request":0.75,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":2,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpsscriptanalyzer-action/issues","maintainers":[],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Fpsscriptanalyzer-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Fpsscriptanalyzer-action/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Fpsscriptanalyzer-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Fpsscriptanalyzer-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/microsoft%2Fpsscriptanalyzer-action/codemeta","maintainers":[]}