Skip to content

Commit 4dcbf2b

Browse files
author
tylertitsworth
committed
add fix step to super linter
Signed-off-by: tylertitsworth <tyler.titsworth@intel.com>
1 parent 844ae32 commit 4dcbf2b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/lint.yaml

+12-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
name: Lint
2727
runs-on: ${{ github.repository_owner == 'intel' && 'intel-ubuntu-latest' || 'ubuntu-latest' }}
2828
permissions:
29-
contents: read
30-
# statuses: write
29+
contents: write
30+
statuses: write
3131
steps:
3232
- name: Harden Runner
3333
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
@@ -52,3 +52,13 @@ jobs:
5252
VALIDATE_PYTHON_FLAKE8: false
5353
VALIDATE_PYTHON_MYPY: false
5454
VALIDATE_PYTHON_RUFF: false
55+
- name: Commit and push linting fixes
56+
if: >
57+
github.event_name == 'pull_request' &&
58+
github.ref_name != github.event.repository.default_branch
59+
uses: stefanzweifel/git-auto-commit-action@v8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1
60+
with:
61+
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
62+
commit_message: "chore: fix linting issues"
63+
commit_user_name: super-linter
64+
commit_user_email: super-linter@super-linter.dev

0 commit comments

Comments
 (0)