Skip to content

Commit 4ac0e3f

Browse files
committed
XYZ-12345 Updated lint settings
1 parent f536316 commit 4ac0e3f

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/pipeline.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,34 @@
11
name: Pipeline
22
on: [push]
3-
43
jobs:
5-
generate:
4+
pipeline:
65
runs-on: ubuntu-latest
76
permissions:
8-
contents: read
7+
contents: write
98
packages: read
109
statuses: write
11-
1210
steps:
13-
1411
- name: Checkout code
1512
uses: actions/checkout@v4
1613
with:
1714
fetch-depth: 0
18-
1915
- name: Super-linter
2016
uses: super-linter/[email protected]
2117
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
FIX_BASH: true
20+
FIX_CHECKOV: true
21+
FIX_MARKDOWN: true
22+
FIX_MARKDOWN_PRETTIER: true
23+
FIX_NATURAL_LANGUAGE: true
24+
FIX_SHELL_SHFMT: true
25+
FIX_YAML_PRETTIER: true
26+
- name: Commit and push linting fixes
27+
if: >
28+
github.ref_name != github.event.repository.default_branch
29+
uses: stefanzweifel/git-auto-commit-action@v5
30+
with:
31+
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
32+
commit_message: "chore: fix linting issues"
33+
commit_user_name: Wesley Scholl
34+
commit_user_email: [email protected]

0 commit comments

Comments
 (0)