From 450cde7f18ea6f08a468e0fda086c0dd0248e882 Mon Sep 17 00:00:00 2001 From: greg pereira Date: Fri, 17 May 2024 07:48:02 -0700 Subject: [PATCH] running the linter Signed-off-by: greg pereira --- .github/dependabot.yml | 13 ++++++------- .github/workflows/actionlint.yml | 12 ++++++------ .github/workflows/docs.yml | 10 +++++----- .markdownlint-cli2.yaml | 8 ++++---- 4 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a17e0a4..c42b053 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -3,15 +3,14 @@ # GitHub Dependabot configuration file version: 2 updates: - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" + - package-ecosystem: 'github-actions' + directory: '/' schedule: - interval: "daily" + interval: 'daily' # Maintain dependencies for JS/yarn - - package-ecosystem: "npm" - directory: "/" + - package-ecosystem: 'npm' + directory: '/' schedule: - interval: "daily" + interval: 'daily' diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 6fad273..88bed2d 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -4,12 +4,12 @@ name: Lint GitHub Actions workflows on: push: branches: - - "main" + - 'main' paths: - '.github/workflows/*.ya?ml' pull_request: branches: - - "main" + - 'main' paths: - '.github/workflows/*.ya?ml' @@ -27,22 +27,22 @@ jobs: actionlint: runs-on: ubuntu-latest steps: - - name: "Harden Runner" + - name: 'Harden Runner' uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 with: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - - name: "Checkout" + - name: 'Checkout' uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 with: fetch-depth: 0 - - name: "Download actionlint" + - name: 'Download actionlint' id: get_actionlint run: | bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/2d26fef7e97b8ab345791f5ade3252da47d083e3/scripts/download-actionlint.bash) - - name: "Check workflow files" + - name: 'Check workflow files' run: | echo "::add-matcher::.github/workflows/matchers/actionlint.json" ${{ steps.get_actionlint.outputs.executable }} -color diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 77db9a2..a85e689 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -5,14 +5,14 @@ name: Lint Markdown documents on: push: branches: - - "main" + - 'main' paths: - '**/*.md' - '.markdownlint-cli2.yaml' - '.github/workflows/docs.yml' # This workflow pull_request: branches: - - "main" + - 'main' paths: - '**/*.md' - '.markdownlint-cli2.yaml' @@ -32,15 +32,15 @@ jobs: markdown-lint: runs-on: ubuntu-latest steps: - - name: "Harden Runner" + - name: 'Harden Runner' uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1 with: egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs - - name: "Checkout" + - name: 'Checkout' uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 with: fetch-depth: 0 - - name: "Check Markdown documents" + - name: 'Check Markdown documents' uses: DavidAnson/markdownlint-cli2-action@b4c9feab76d8025d1e83c653fa3990936df0e6c8 # v16.0.0 with: globs: '**/*.md' diff --git a/.markdownlint-cli2.yaml b/.markdownlint-cli2.yaml index 1104379..3bd53f1 100644 --- a/.markdownlint-cli2.yaml +++ b/.markdownlint-cli2.yaml @@ -6,8 +6,8 @@ config: no-duplicate-header: false single-trailing-newline: false globs: - - "**/*.md" + - '**/*.md' ignores: - - ".tox/**" - - "venv/**" - - ".venv/**" + - '.tox/**' + - 'venv/**' + - '.venv/**'