How to use Lintrule in a Buildkite Pipeline
Create a new secret and add it as an environment variable (LINTRULE_SECRET
) to your GitHub Action.
rules secrets create
Then add the following to your pipeline:
steps:
- label: ":github: Checkout"
commands:
- "git clone https://github.com/your-repo.git ."
- "git fetch --depth=2"
- label: ":package: Install Lint Rules"
command: "curl -fsSL https://www.lintrule.com/install.sh | bash"
- label: ":hammer: Run Lint Rules Check"
# Assumes there's a "LINTRULE_SECRET" environment variable
command: "rules check"