https://github.com/ain/falco-github-action
Falco GitHub Action for Fastly VCL parsing and validation
https://github.com/ain/falco-github-action
fastly varnish vcl
Last synced: 2 months ago
JSON representation
Falco GitHub Action for Fastly VCL parsing and validation
- Host: GitHub
- URL: https://github.com/ain/falco-github-action
- Owner: ain
- License: mit
- Created: 2023-12-07T22:48:04.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-10T15:20:50.000Z (almost 2 years ago)
- Last Synced: 2025-02-16T11:27:50.667Z (8 months ago)
- Topics: fastly, varnish, vcl
- Language: VCL
- Homepage: https://github.com/marketplace/actions/falco-vcl-parser
- Size: 43.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# falco-github-action
GitHub Action for Fastly VCL parsing and validation.
Based on [Falco](https://github.com/ysugimoto/falco).
## Usage
```yaml
- name: Lint VCL
uses: ain/falco-github-action@v1
with:
subcommand: lint
options: "-v -I test/vcl/includes"
target: test/vcl/valid_with_include.vcl
```## Inputs
| Input | Default | Required | Description |
| ----- | ------- | -------- | ----------- |
| `subcommand` | `lint` | yes | Run linter on VCL (or ACL) |
| `options` | - | no | Optional flags, see [Common Flags of Falco](https://github.com/ysugimoto/falco#usage) |
| `target` | - | yes | VCL (or ACL) file to target, e.g. to lint |## Tips and tricks
To run linter processes in parallel across multiple files, one can leverage a `matrix`, e.g.:
```yaml
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- path/to/first.vcl
- path/to/second.vcl
steps:
- uses: actions/checkout@v4
- name: Lint
uses: ain/falco-github-action@v1
with:
subcommand: lint
target: ${{ matrix.target }}
```## Licence
Copyright © 2023 Ain Tohvri. Licenced under [MIT](LICENSE).