Skip to content

Invoke-GitLabProjectCodeSigning

SYNOPSIS

Sign project files in a GitLab project using a code-signing certificate.

SYNTAX

Invoke-GitLabProjectCodeSigning

DESCRIPTION

This function retrieves a valid code-signing certificate from the local machine, identifies files in the GitLab project directory that require signing (e.g., `.msi`, `.exe`, `.dll`, `.ps1`, `.psm1`, `.psd1`), and signs them using the certificate. A timestamp server is used to ensure the validity of the signature.

EXAMPLES

EXAMPLE 1

Invoke-GitLabProjectCodeSigning

Signs all eligible files in the current GitLab project directory using the default certificate and timestamp server.

EXAMPLE 2

Invoke-GitLabProjectCodeSigning -CertificateSubject '*CN=Custom CodeSigner*' -TimeStampServer 'http://timestamp.example.com'

Signs all eligible files in the current GitLab project directory using a custom certificate and timestamp server.

PARAMETERS

INPUTS

OUTPUTS

NOTES