Bicep Linter
ActionsRuns Bicep build on the files, takes any linting errors and surfaces them in GitHub
v1.1
LatestBy synergy-au
Tags
(1)GitHub Action to lint Bicep. This will show the linting messages in both the pull requests and the actions workflow runs. You are also able to set your own Bicep linter configuration which this action will respect.
analyse-all-files
- Description: Used to determine whether you just want to analyse the files changed or the whole repository. When set to false on a pull request event, it will compare between the current and target branch. When set to false on a push event, it will compare the changes between two commits.
- Required: false
- Default: 'false'
bicep-version
- Description: Bicep version used to build files. Specific versions can be found with 'az bicep list-versions' Defaults to latest.
- Required:: false
- Default:: 'latest'
name: Linter
on:
pull_request:
workflow_dispatch:
jobs:
bicep-linter:
name: Bicep
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
# Incremental diffs require fetch depth to be at 0 to grab the target branch
fetch-depth: "0"
- name: Run Bicep Linter
uses: synergy-au/bicep-lint-action@v1
with:
analyse-all-files: "true" # optional, defaults to false (only analyse changed files)
bicep-version: "latest" # optional, defaults to latest
Bicep Linter is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.