diff --git a/.github/linters/.powershell-psscriptanalyzer.psd1 b/.github/linters/.powershell-psscriptanalyzer.psd1 new file mode 100644 index 00000000..6779d06f --- /dev/null +++ b/.github/linters/.powershell-psscriptanalyzer.psd1 @@ -0,0 +1,17 @@ +#Documentation: https://github.com/PowerShell/PSScriptAnalyzer/blob/master/docs/Cmdlets/Invoke-ScriptAnalyzer.md#-settings +@{ + #CustomRulePath='path\to\CustomRuleModule.psm1' + #RecurseCustomRulePath='path\of\customrules' + #Severity = @( + # 'Error' + # 'Warning' + #) + #IncludeDefaultRules=${true} + ExcludeRules = @( + 'PSAvoidUsingWriteHost' + ) + #IncludeRules = @( + # 'PSAvoidUsingWriteHost', + # 'MyCustomRuleName' + #) +} diff --git a/.github/workflows/Auto-Release.yml b/.github/workflows/Auto-Release.yml index 05d63b4a..ec157c9d 100644 --- a/.github/workflows/Auto-Release.yml +++ b/.github/workflows/Auto-Release.yml @@ -14,7 +14,7 @@ on: - labeled concurrency: - group: ${{ github.workflow }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index fd491ea5..5c9f300c 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -5,13 +5,13 @@ run-name: "Linter - [${{ github.event.pull_request.title }} #${{ github.event.pu on: [pull_request] concurrency: - group: ${{ github.workflow }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: contents: read packages: read - statuses: write # To report GitHub Actions status checks + statuses: write jobs: Lint: diff --git a/.github/workflows/Workflow-Test.yml b/.github/workflows/Workflow-Test.yml index 76f63604..1dc8163a 100644 --- a/.github/workflows/Workflow-Test.yml +++ b/.github/workflows/Workflow-Test.yml @@ -5,7 +5,7 @@ run-name: "Workflow-Test - [${{ github.event.pull_request.title }} #${{ github.e on: [pull_request] concurrency: - group: ${{ github.workflow }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: diff --git a/README.md b/README.md index 00b208c1..f06afeaf 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,8 @@ on: - labeled concurrency: - group: ${{ github.workflow }} + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true permissions: contents: write