Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .github/actions/infrastructure/get-changed-files/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ outputs:
files:
description: 'JSON array of changed file paths'
value: ${{ steps.get-files.outputs.files }}
files_path:
description: 'Path to temp file containing the JSON array of changed file paths'
value: ${{ steps.get-files.outputs.files_path }}
count:
description: 'Number of changed files'
value: ${{ steps.get-files.outputs.count }}
Expand Down Expand Up @@ -109,7 +112,17 @@ runs:
core.endGroup();

console.log(`Found ${changedFiles.length} changed files`);

// Write files to a temp file to avoid exceeding ARG_MAX for large PRs
const fs = require('fs');
const path = require('path');
const tempDir = process.env.RUNNER_TEMP || '/tmp';
const tempFile = path.join(tempDir, 'changed-files.json');
fs.writeFileSync(tempFile, JSON.stringify(changedFiles));
console.log(`File list written to ${tempFile}`);

core.setOutput('files', JSON.stringify(changedFiles));
core.setOutput('files_path', tempFile);
core.setOutput('count', changedFiles.length);

branding:
Expand Down
12 changes: 8 additions & 4 deletions .github/actions/infrastructure/markdownlinks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ runs:
id: verify
shell: pwsh
env:
CHANGED_FILES_JSON: ${{ steps.changed-files.outputs.files }}
CHANGED_FILES_PATH: ${{ steps.changed-files.outputs.files_path }}
run: |
Write-Host "Starting markdown link verification..." -ForegroundColor Cyan

# Get changed markdown files from environment variable (secure against injection)
$changedFilesJson = $env:CHANGED_FILES_JSON
$changedFiles = $changedFilesJson | ConvertFrom-Json
# Read changed markdown files from temp file to avoid ARG_MAX limits with large PRs
$changedFilesPath = $env:CHANGED_FILES_PATH
if ($changedFilesPath -and (Test-Path $changedFilesPath)) {
$changedFiles = @(Get-Content $changedFilesPath -Raw | ConvertFrom-Json)
} else {
$changedFiles = @()
}

if ($changedFiles.Count -eq 0) {
Write-Host "No markdown files changed, skipping verification" -ForegroundColor Yellow
Expand Down
13 changes: 8 additions & 5 deletions .github/actions/infrastructure/merge-conflict-checker/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ runs:
id: check
shell: pwsh
env:
CHANGED_FILES_JSON: ${{ steps.changed-files.outputs.files }}
CHANGED_FILES_PATH: ${{ steps.changed-files.outputs.files_path }}
run: |
# Get changed files from environment variable (secure against injection)
$changedFilesJson = $env:CHANGED_FILES_JSON
# Ensure we always have an array (ConvertFrom-Json returns null for empty JSON arrays)
$changedFiles = @($changedFilesJson | ConvertFrom-Json)
# Read changed files from temp file to avoid ARG_MAX limits with large PRs
$changedFilesPath = $env:CHANGED_FILES_PATH
if ($changedFilesPath -and (Test-Path $changedFilesPath)) {
$changedFiles = @(Get-Content $changedFilesPath -Raw | ConvertFrom-Json)
} else {
$changedFiles = @()
}

# Import ci.psm1 and run the check
Import-Module "$env:GITHUB_WORKSPACE/tools/ci.psm1" -Force
Expand Down
13 changes: 10 additions & 3 deletions .github/actions/infrastructure/path-filters/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
id: filter
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
env:
FILES_JSON: ${{ steps.get-files.outputs.files }}
FILES_PATH: ${{ steps.get-files.outputs.files_path }}
with:
github-token: ${{ inputs.GITHUB_TOKEN }}
script: |
Expand All @@ -60,8 +60,15 @@ runs:
return;
}

// Get files from environment variable (secure against injection)
const files = JSON.parse(process.env.FILES_JSON || '[]');
// Read files from temp file to avoid ARG_MAX limits with large PRs
const fs = require('fs');
const filesPath = process.env.FILES_PATH;
let files = [];
if (filesPath && fs.existsSync(filesPath)) {
files = JSON.parse(fs.readFileSync(filesPath, 'utf8'));
} else {
console.log('Warning: files_path not found, no files to analyze');
}

// Calculate hash for verification (matches get-changed-files action)
const crypto = require('crypto');
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema

Version 2.0

The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.

Example:

... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>

There are any number of "resheader" rows that contain simple
name/value pairs.

Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.

The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:

Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.

mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.

mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CimOperationCompleted" xml:space="preserve">
<value>Operation '{0}' complete.</value>
<comment>{0} is a placeholder for operation name. (i.e, GetCimInstance)</comment>
</data>
<data name="CimOperationNameCreateInstance" xml:space="preserve">
<value>Create CimInstance</value>
</data>
<data name="CimOperationNameDeleteInstance" xml:space="preserve">
<value>Delete CimInstance</value>
</data>
<data name="CimOperationNameEnumerateAssociatedInstances" xml:space="preserve">
<value>Enumerate Associated CimInstances</value>
</data>
<data name="CimOperationNameEnumerateClasses" xml:space="preserve">
<value>Enumerate CimClasses</value>
</data>
<data name="CimOperationNameEnumerateInstances" xml:space="preserve">
<value>Enumerate CimInstances</value>
</data>
<data name="CimOperationNameGetClass" xml:space="preserve">
<value>Get CimClass</value>
</data>
<data name="CimOperationNameGetInstance" xml:space="preserve">
<value>Get CimInstance</value>
</data>
<data name="CimOperationNameInvokeMethod" xml:space="preserve">
<value>Invoke CimMethod</value>
</data>
<data name="CimOperationNameModifyInstance" xml:space="preserve">
<value>Modify CimInstance</value>
</data>
<data name="CimOperationNameQueryInstances" xml:space="preserve">
<value>Query CimInstances</value>
</data>
<data name="CimOperationNameSubscribeIndication" xml:space="preserve">
<value>Subscribe CimIndication</value>
</data>
<data name="CimOperationStart" xml:space="preserve">
<value>Perform operation '{0}' with following parameters, '{1}'.</value>
<comment>{0} is a placeholder for operation name; {1} is a placeholder for parameters value</comment>
</data>
<data name="ConflictParameterWasSet" xml:space="preserve">
<value>Parameter '{0}' cannot be used with the parameter '{1}'.</value>
<comment>{0} is a placeholder for parameter name; {1} is a placeholder for another parameter name;</comment>
</data>
<data name="CouldNotFindCimsessionObject" xml:space="preserve">
<value>Could not find CimSession with the given {0} = {1}</value>
<comment>{0} is a placeholder for property name; {1} is a placeholder for property value.</comment>
</data>
<data name="CouldNotFindPropertyFromGivenClass" xml:space="preserve">
<value>Could not find the following properties from the given class {0}: {1}.</value>
<comment>{0} is a placeholder for class name; {1} is a placeholder for list of property names.</comment>
</data>
<data name="CouldNotModifyReadonlyProperty" xml:space="preserve">
<value>Could not modify readonly property '{0}' of object '{1}'.</value>
<comment>{0} is a placeholder for propertyname; {1} is a placeholder for object string.</comment>
</data>
<data name="DefaultStatusDescription" xml:space="preserve">
<value>Default status description.</value>
<comment>N/A</comment>
</data>
<data name="DidNotResolveFile" xml:space="preserve">
<value>Cannot perform operation because the wildcard path {0} did not resolve to a file.</value>
<comment>{0} is a placeholder for a path</comment>
</data>
<data name="InvalidAuthenticationTypeWithNullCredential" xml:space="preserve">
<value>Authentication type '{0}' is invalid without credential. Only following authentication type are allowed without credential, '{1}', '{2}', '{3}', or '{4}'.</value>
<comment>{0} is a placeholder for authentication type. {1}-{4} are placeholders for authentication types.</comment>
</data>
<data name="InvalidMethod" xml:space="preserve">
<value>Can not find method '{0}' in class '{1}'.</value>
<comment>{0} is a placeholder for method name. {1} is a placeholders for class name.</comment>
</data>
<data name="InvalidMethodParameter" xml:space="preserve">
<value>Can not find Parameter '{0}' in method '{1}' of class '{2}'.</value>
<comment>{0} is a placeholder for parameter name; {1} is a placeholder for method name; {2} is a placeholder for class name.</comment>
</data>
<data name="InvalidOperation" xml:space="preserve">
<value>Invalid operation. Current cmdlet already have operation created.</value>
<comment>N/A</comment>
</data>
<data name="InvalidParameterValue" xml:space="preserve">
<value>Argument '{0}' contains characters that are not allowed in parameter '{1}'. Supply an argument that is valid and then try the command again.</value>
<comment>{0} stand for argument value, {1} stand for parameter name.</comment>
</data>
<data name="MultipleFilesNotSupported" xml:space="preserve">
<value>Cannot perform operation because the path resolved to more than one file. This command cannot operate on multiple files.</value>
</data>
<data name="NullArgument" xml:space="preserve">
<value>Argument '{0}' can not be null.</value>
<comment>N/A</comment>
</data>
<data name="OperationInProgress" xml:space="preserve">
<value>CimSession proxy object already have operation in progress.</value>
<comment>N/A</comment>
</data>
<data name="ReadWriteFileNotFileSystemProvider" xml:space="preserve">
<value>Cannot open file because the current provider ({0}) cannot open a file.</value>
<comment>{0} is a placeholder for PowerShell filesystem-like provider name (i.e. registry provider)</comment>
</data>
<data name="UnableToAddPropertyToInstance" xml:space="preserve">
<value>Unable to add property '{0}' to input object '{1}'. The class schema does not contain the property.</value>
<comment>{0} stand for property name, {1} stand for cim instance path.</comment>
</data>
<data name="UnableToResolveParameterSetName" xml:space="preserve">
<value>Unable to resolve the parameter set name.</value>
<comment>N/A</comment>
</data>
</root>
Loading
Loading