Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.1 KB

Add-ActionSecret.md

File metadata and controls

45 lines (29 loc) · 1.1 KB

Add-ActionSecret


NAME
    Add-ActionSecret
    
SYNOPSIS
    Registers a secret which will get masked from logs.
    Equivalent of `core.setSecret(secret)`.
    
    
SYNTAX
    Add-ActionSecret [-Secret] <String> [<CommonParameters>]
    
    
DESCRIPTION
    

PARAMETERS
    -Secret <String>
        The value of the secret.
        
        Required?                    true
        Position?                    1
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false
        
    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216). 
    
INPUTS
    
OUTPUTS
    
    
RELATED LINKS
    https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#masking-a-value-in-log
    https://github.com/actions/toolkit/tree/main/packages/core#setting-a-secret