https://github.com/replicatedhq/action-kots-lint
https://github.com/replicatedhq/action-kots-lint
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/replicatedhq/action-kots-lint
- Owner: replicatedhq
- Created: 2020-01-20T19:33:29.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-17T16:32:07.000Z (over 1 year ago)
- Last Synced: 2025-03-23T03:33:13.644Z (about 1 year ago)
- Language: Dockerfile
- Size: 18.6 KB
- Stars: 2
- Watchers: 22
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
action-kots-lint
=====================
A github Action to lint application manifests for a [Replicated KOTS](https://blog.replicated.com/announcing-kots/) application.
### Usage
An example workflow is included at [./.github/workflows/main.yml](./.github/workflows/main.yml)
```yaml
name: Lint KOTS Application Manifests
on: [push]
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: replicatedhq/action-kots-lint@v0.2.0
name: Lint the release manifests
with:
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}
replicated-app: ${{ secrets.REPLICATED_APP }}
yaml-dir: manifests
```
### Inputs
#### replicated-app
The application slug or ID for this application. This can be found at [vendor.replicated.com/settings](https://vendor.replicated.com/settings).
#### replicated-api-token
A Replicated Service Account API token. Create one in the vendor portal under [Service Accounts](https://vendor.replicated.com/team/serviceaccounts).
#### yaml-dir
A directory containing KOTS manifests, defaults to `./manifests`.
### Limiting to specific branches or patterns
To limit which branches create releases or more advanced branch filtering, check out the [GitHub Actions docs on workflow triggers](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows).