Skip to content

Commit b41d5a9

Browse files
chore: centrally ignore job.workflow_* lint errors and allow Write-Host
1 parent 4e20b09 commit b41d5a9

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/actionlint.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
paths:
2+
.github/workflows/*.yml:
3+
# actionlint does not yet know the `job.workflow_repository` / `job.workflow_sha` contexts
4+
# (https://docs.github.com/actions/reference/contexts-reference#job-context). GitHub Actions
5+
# itself resolves and runs them correctly; this is a central, one-time ignore instead of an
6+
# inline suppression on every `uses: actions/checkout` self-checkout step that reads them.
7+
ignore:
8+
- 'property "workflow_repository" is not defined in object type'
9+
- 'property "workflow_sha" is not defined in object type'

.github/linters/.powershell-psscriptanalyzer.psd1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
}
5252
ExcludeRules = @(
5353
'PSMissingModuleManifestField', # This rule is not applicable until the module is built.
54-
'PSUseToExportFieldsInManifest'
54+
'PSUseToExportFieldsInManifest',
55+
'PSAvoidUsingWriteHost' # All code runs on GitHub-hosted runners with modern hosts that support Write-Host.
5556
)
5657
}

0 commit comments

Comments
 (0)