Skip to content

Commit

Permalink
running the linter
Browse files Browse the repository at this point in the history
Signed-off-by: greg pereira <[email protected]>
  • Loading branch information
Gregory-Pereira committed May 17, 2024
1 parent b0c885f commit 450cde7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 22 deletions.
13 changes: 6 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
12 changes: 6 additions & 6 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
8 changes: 4 additions & 4 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ config:
no-duplicate-header: false
single-trailing-newline: false
globs:
- "**/*.md"
- '**/*.md'
ignores:
- ".tox/**"
- "venv/**"
- ".venv/**"
- '.tox/**'
- 'venv/**'
- '.venv/**'

0 comments on commit 450cde7

Please sign in to comment.