ci: Check spelling with codespell
* You can ignore words inline by adding a comment like `# codespell:ignore word`. * You can ignore words by adding them to the `.codespell_ignores` file. * You can ignore files and directories by adding them with `skip = ` to the `.codespellrc` file. Signed-off-by: Sergei Petrosian <spetrosi@redhat.com>
This commit is contained in:
committed by
Sergei Petrosian
parent
21122732bd
commit
c9eca28874
@@ -0,0 +1,8 @@
|
|||||||
|
[codespell]
|
||||||
|
check-hidden = true
|
||||||
|
# Note that `-w` doesn't work when ignore-multiline-regex is set
|
||||||
|
# https://github.com/codespell-project/codespell/issues/3642
|
||||||
|
ignore-multiline-regex = codespell:ignore-begin.*codespell:ignore-end
|
||||||
|
ignore-words = .codespell_ignores
|
||||||
|
# skip-file is not available https://github.com/codespell-project/codespell/pull/2759
|
||||||
|
skip = .README.html
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
# Codespell configuration is within .codespellrc
|
||||||
|
---
|
||||||
|
name: Codespell
|
||||||
|
on: # yamllint disable-line rule:truthy
|
||||||
|
- pull_request
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
jobs:
|
||||||
|
codespell:
|
||||||
|
name: Check for spelling errors
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Codespell
|
||||||
|
uses: codespell-project/actions-codespell@v2
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
RUN_ID=$(gh api "repos/$REPO/actions/workflows/tft.yml/runs?event=issue_comment" \
|
RUN_ID=$(gh api "repos/$REPO/actions/workflows/tft.yml/runs?event=issue_comment" \
|
||||||
| jq -r "[.workflow_runs[] | select( .display_title == \"$PR_TITLE\" ) | select( .conclusion == \"failure\" ) | .id][0]")
|
| jq -r "[.workflow_runs[] | select( .display_title == \"$PR_TITLE\" ) | select( .conclusion == \"failure\" ) | .id][0]")
|
||||||
if [ "$RUN_ID" = "null" ]; then
|
if [ "$RUN_ID" = "null" ]; then
|
||||||
echo "Failed workflow not found, exitting"
|
echo "Failed workflow not found, exiting"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "Re-running workflow $RUN_ID"
|
echo "Re-running workflow $RUN_ID"
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ Copyright (c) 2017 GitHub Inc.
|
|||||||
|
|
||||||
"GitHub Pandoc HTML5 Template" is Copyright (c) Tristano Ajmone, 2017-2020,
|
"GitHub Pandoc HTML5 Template" is Copyright (c) Tristano Ajmone, 2017-2020,
|
||||||
released under the MIT License (MIT); it contains readaptations of substantial
|
released under the MIT License (MIT); it contains readaptations of substantial
|
||||||
portions of the following third party softwares:
|
portions of the following third party software:
|
||||||
|
|
||||||
(1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT).
|
(1) "GitHub Markdown CSS", Copyright (c) Sindre Sorhus, MIT License (MIT).
|
||||||
(2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT).
|
(2) "Primer CSS", Copyright (c) 2016 GitHub Inc., MIT License (MIT).
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# AIDE
|
# AIDE
|
||||||
|
|
||||||
[](https://github.com/linux-system-roles/aide/actions/workflows/ansible-lint.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/ansible-test.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/markdownlint.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/shellcheck.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/tft.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/tft_citest_bad.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/woke.yml)
|
[](https://github.com/linux-system-roles/aide/actions/workflows/ansible-lint.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/ansible-test.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/codespell.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/markdownlint.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/shellcheck.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/tft.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/tft_citest_bad.yml) [](https://github.com/linux-system-roles/aide/actions/workflows/woke.yml)
|
||||||
|
|
||||||
This is an ansible role that installs and configures the [Advanced Intrusion Detection Environment (AIDE)](https://aide.github.io). For Day 2 tasks it can run integrity checks and update the AIDE database.
|
This is an ansible role that installs and configures the [Advanced Intrusion Detection Environment (AIDE)](https://aide.github.io). For Day 2 tasks it can run integrity checks and update the AIDE database.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user