Skip to content

Commit 51849d6

Browse files
committed
edit super-linter action
1 parent 65a36a9 commit 51849d6

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/super-linter.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,16 @@ jobs:
2222
uses: super-linter/super-linter@v7.3.0
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25-
25+
VALIDATE_MARKDOWN: true
26+
VALIDATE_TERRAFORM_FMT: true
27+
VALIDATE_TERRAFORM_TERRASCAN: true
28+
VALIDATE_TERRAFORM_TFLINT: true
29+
VALIDATE_PYTHON_BLACK: true
30+
VALIDATE_PYTHON_PYLINT: true
31+
VALIDATE_PYTHON_ISORT: true
32+
VALIDATE_PYTHON_MYPY: true
33+
VALIDATE_PYTHON_BANDIT: true
34+
2635
# ✅ Step 2: Run Super-Linter in fix mode and commit changes
2736
fix-lint-issues:
2837
permissions:
@@ -41,18 +50,15 @@ jobs:
4150
env:
4251
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4352
# ✅ Enable auto-fix for Shell, Python, YAML, Markdown, and Terraform:
44-
VALIDATE_MARKDOWN: true
45-
VALIDATE_TERRAFORM_FMT: true
46-
VALIDATE_TERRAFORM_TERRASCAN: true
47-
VALIDATE_TERRAFORM_TFLINT: true
4853
FIX_SHELL_SHFMT: true
4954
FIX_YAML_PRETTIER: true
5055
FIX_PYTHON_BLACK: true
5156
FIX_PYTHON_ISORT: true
5257
FIX_PYTHON_PYINK: true
5358
FIX_MARKDOWN: true
5459
FIX_TERRAFORM_FMT: true
55-
60+
FIX_TERRAFORM_TERRASCAN: true
61+
FIX_TERRAFORM_TFLINT: true
5662

5763
- name: Commit and push linting fixes
5864
if: github.event_name == 'pull_request' && github.ref_name != github.event.repository.default_branch

0 commit comments

Comments
 (0)