Skip to content

--wip-- [skipci]

--wip-- [skipci] #1027

Workflow file for this run

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Lint
on: # yamllint disable-line rule:truthy
push:
branches:
- main
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
env:
# Currently no way to detect automatically
DEFAULT_BRANCH: main
jobs:
build:
name: MegaLinter
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skipci')"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: MegaLinter
uses: oxsecurity/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'workflow_dispatch' }}
ENABLE_LINTERS: |-
${{
join(
fromJSON('
[
"ACTION_ACTIONLINT",
"COPYPASTE_JSCPD",
"MARKDOWN_MARKDOWNLINT",
"REPOSITORY_GIT_DIFF",
"REPOSITORY_SECRETLINT",
"YAML_YAMLLINT"
]
'),
','
)
}}
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdownlint.yaml
YAML_YAMLLINT_CONFIG_FILE: .yamllint.yaml
# yaml:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Set up Python3
# uses: actions/setup-python@v2
# with:
# python-version: 3.x
# - name: Install dependencies
# run: pip3 install ansible yamllint ansible-lint
# - name: Lint ansible yaml
# run: |
# ansible-lint --offline
# shell:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Lint shell
# run: |
# find -type f \
# \( -name '*.sh' -o -name '*.bash' -o -name '*.ksh' -o -name '*.bashrc' \
# -o -name '*.bash_profile' -o -name '*.bash_login' -o -name '*.bash_logout' \) \
# -not -path "./dotbot/*" \
# | xargs shellcheck