{"id":25411317,"url":"https://github.com/martincostello/lint-actions-powershell","last_synced_at":"2026-05-04T07:36:26.466Z","repository":{"id":276344133,"uuid":"928852181","full_name":"martincostello/lint-actions-powershell","owner":"martincostello","description":"Lints inline PowerShell script steps in GitHub Actions","archived":false,"fork":false,"pushed_at":"2025-04-08T04:59:58.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T05:44:23.429Z","etag":null,"topics":["github-actions","lint","powershell"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/martincostello.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["martincostello"],"buy_me_a_coffee":"martincostello"}},"created_at":"2025-02-07T11:00:53.000Z","updated_at":"2025-04-08T05:00:01.000Z","dependencies_parsed_at":"2025-02-23T19:25:44.217Z","dependency_job_id":"7c34d191-40dc-4a15-8d5e-0f02c8ead06d","html_url":"https://github.com/martincostello/lint-actions-powershell","commit_stats":null,"previous_names":["martincostello/lint-actions-powershell"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Flint-actions-powershell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Flint-actions-powershell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Flint-actions-powershell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martincostello%2Flint-actions-powershell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martincostello","download_url":"https://codeload.github.com/martincostello/lint-actions-powershell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248845149,"owners_count":21170710,"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","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"}},"keywords":["github-actions","lint","powershell"],"created_at":"2025-02-16T10:17:07.205Z","updated_at":"2026-05-04T07:36:26.460Z","avatar_url":"https://github.com/martincostello.png","language":"PowerShell","funding_links":["https://github.com/sponsors/martincostello","https://buymeacoffee.com/martincostello"],"categories":[],"sub_categories":[],"readme":"# Lint Actions PowerShell\n\n[![Build status][build-badge]][build-status]\n[![OpenSSF Scorecard][scorecard-badge]][scorecard-report]\n\n## Introduction\n\nLints inline PowerShell script steps in GitHub Actions.\n\nGitHub Actions workflows in the `.github/workflows` directory\nand `action.yml` files for custom actions are linted using\n[PSScriptAnalyzer][PSScriptAnalyzer] to check for common issues and best practices.\n\nIssues found by PSScriptAnalyzer are emitted as [GitHub Actions workflow annotations][workflow-annotations].\n\n## Examples\n\n### Basic Usage\n\nTo lint PowerShell script steps in a GitHub Actions workflow using the default rules:\n\n```yml\nsteps:\n- uses: actions/checkout@v4\n- uses: martincostello/lint-actions-powershell@v1\n```\n\n### Advanced Usage\n\n```yml\nsteps:\n- uses: actions/checkout@v4\n  with:\n    path: 'my-repo'\n- uses: martincostello/lint-actions-powershell@v1\n  with:\n    annotations-title: 'lint-powershell'\n    powershell-yaml-version: '0.4.12'\n    psscriptanalyzer-version: '1.23.0'\n    repo-path: 'my-repo'\n    settings-path: 'my-repo/ScriptAnalyzerProfile.txt'\n    treat-warnings-as-errors: true\n```\n\n## Inputs\n\n### Optional\n\n| **Name** | **Description** | **Default** |\n| :------- | :-------------- | :---------- |\n| `annotations-title` | The optional title to use for workflow annotations. | `'PSScriptAnalyzer'` |\n| `powershell-yaml-version` | The optional version of the [powershell-yaml][powershell-yaml] module to install. | Latest |\n| `psscriptanalyzer-version` | The optional version of the [PSScriptAnalyzer][PSScriptAnalyzer] module to install. | Latest |\n| `repo-path` | The optional path to the repository containing the files to lint. | `github.workspace` |\n| `settings-path` | An optional path to a file containing a user-defined profile containing settings for PSScriptAnalyzer. | [Default settings][default-settings] |\n| `treat-warnings-as-errors` | Whether to treat warnings as errors. | `false` |\n\n#### Default Settings\n\nThe default PSScriptAnalyzer settings used are equivalent to:\n\n```powershell\n@{\n    IncludeDefaultRules = $true\n    Severity = @(\"Error\", \"Warning\")\n}\n```\n\n## Outputs\n\nNone.\n\n## Feedback\n\nAny feedback or issues can be added to the issues for this project in [GitHub][issues].\n\n## Repository\n\nThe repository is hosted in [GitHub][repo]: \u003chttps://github.com/martincostello/lint-actions-powershell.git\u003e\n\n## License\n\nThis project is licensed under the [Apache 2.0][license] license.\n\n[build-badge]: https://github.com/martincostello/lint-actions-powershell/actions/workflows/lint.yml/badge.svg?branch=main\u0026event=push\n[build-status]: https://github.com/martincostello/lint-actions-powershell/actions?query=workflow%3Alint+branch%3Amain+event%3Apush \"Continuous Integration for this project\"\n[default-settings]: #default-settings \"The default settings for PSScriptAnalyzer\"\n[issues]: https://github.com/martincostello/lint-actions-powershell/issues \"Issues for this project on GitHub.com\"\n[license]: https://www.apache.org/licenses/LICENSE-2.0.txt \"The Apache 2.0 license\"\n[powershell-yaml]: https://www.powershellgallery.com/packages/powershell-yaml \"powershell-yaml in PowerShell Gallery\"\n[PSScriptAnalyzer]: https://www.powershellgallery.com/packages/PSScriptAnalyzer \"PSScriptAnalyzer in PowerShell Gallery\"\n[repo]: https://github.com/martincostello/lint-actions-powershell \"This project on GitHub.com\"\n[scorecard-badge]: https://api.securityscorecards.dev/projects/github.com/martincostello/lint-actions-powershell/badge\n[scorecard-report]: https://securityscorecards.dev/viewer/?uri=github.com/martincostello/lint-actions-powershell \"OpenSSF Scorecard for this project\"\n[workflow-annotations]: https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions \"Workflow commands for GitHub Actions\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincostello%2Flint-actions-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartincostello%2Flint-actions-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartincostello%2Flint-actions-powershell/lists"}