Skip to content

Commit 613f7ac

Browse files
feat: add Lint-Repository job to workflow and update checkout steps for credential handling
1 parent 70dc216 commit 613f7ac

File tree

4 files changed

+27
-324
lines changed

4 files changed

+27
-324
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 324 deletions
This file was deleted.

.github/workflows/Lint-SourceCode.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
steps:
5252
- name: Checkout Code
5353
uses: actions/checkout@v5
54+
with:
55+
persist-credentials: false
56+
fetch-depth: 0
5457

5558
- name: Lint-SourceCode
5659
uses: PSModule/Invoke-ScriptAnalyzer@v3

.github/workflows/Linter.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- name: Checkout repo
2222
uses: actions/checkout@v5
2323
with:
24+
persist-credentials: false
2425
fetch-depth: 0
2526

2627
- name: Lint code base

.github/workflows/workflow.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,29 @@ jobs:
8282
Version: ${{ inputs.Version }}
8383
WorkingDirectory: ${{ inputs.WorkingDirectory }}
8484

85+
Lint-Repository:
86+
name: Lint code base
87+
runs-on: ubuntu-latest
88+
needs:
89+
- Get-Settings
90+
steps:
91+
- name: Checkout repo
92+
uses: actions/checkout@v5
93+
with:
94+
persist-credentials: false
95+
fetch-depth: 0
96+
97+
- name: Lint code base
98+
uses: super-linter/super-linter@latest
99+
env:
100+
GITHUB_TOKEN: ${{ github.token }}
101+
VALIDATE_BIOME_FORMAT: false
102+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
103+
VALIDATE_JSCPD: false
104+
VALIDATE_JSON_PRETTIER: false
105+
VALIDATE_MARKDOWN_PRETTIER: false
106+
VALIDATE_YAML_PRETTIER: false
107+
85108
Build-Module:
86109
if: ${{ fromJson(needs.Get-Settings.outputs.Settings).Build.Module.Skip != true }}
87110
uses: ./.github/workflows/Build-Module.yml

0 commit comments

Comments
 (0)