actions-marketplace-validations/deploy-lock

Lock Action to support deployment locking for the branch-deploy Action

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Nov 26, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/grantbirki_lock@9a5898804aedcdfb43592ed16b6457768d048183 # no releases — HEAD as of 2026-07-10

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github_tokenThe GitHub token used to create an authenticated client - Provided for you by default!yes${{ github.token }}
environmentThe explict environment to apply locking actions to when running in headless mode - OR the default environment to use when running in the context of IssueOps commands in a comment - Examples: production, development, etc - Use "global" for the global lock environmentyesproduction
environment_targetsOptional (or additional) target environments to select for use with lock/unlock. Example, "production,development,staging". Example usage: `.lock development`, `.lock production`, `.unlock staging`noproduction,development,staging
lock_triggerThe string to look for in comments as an IssueOps lock trigger. Used for locking branch deployments on a specific branch. Example: "lock"no.lock
unlock_triggerThe string to look for in comments as an IssueOps unlock trigger. Used for unlocking branch deployments. Example: "unlock"no.unlock
reactionIf set, the specified emoji "reaction" is put on the comment to indicate that the trigger was detected. For example, "rocket" or "eyes"noeyes
lock_info_aliasAn alias or shortcut to get details about the current lock (if it exists) Example: ".info"no.wcid
global_lock_flagThe flag to pass into the lock command to lock all environments. Example: "--global"no--global
prefix_onlyIf "false", the trigger can match anywhere in the commentnotrue
modeThe mode to use "lock", "unlock", or "check". If not provided, the default mode assumes the workflow is not headless and triggered by a comment on a pull request - Example: .lock / .unlockno
reasonReason for claiming the deployment lock for this repositoryno
namedescription
triggeredThe string "true" if the trigger was found, otherwise the string "false"
comment_idThe comment id which triggered this deployment (if it was not headless)
typeThe type of trigger which was found - 'lock', 'unlock', or 'info-info-alias'
comment_bodyThe comment body which triggered this action (if it was not headless)
headlessThe string "true" if the run was headless, otherwise the string "false" - Headless in this context would be if the "mode" was set and the Action was not invoked by a comment on a pull request
lockedIf the mode is set to "check", this output will be "true" if a lock exists, otherwise "false"
lock_environmentWhen running in headless mode and the "mode" is set to "check", this output will be the environment name that holds the lock, otherwise it will be empty
branchIf the mode is set to "check", this output will be the branch name that holds the lock, otherwise it will be empty
created_byIf the mode is set to "check", this output will be the user that holds the lock, otherwise it will be empty
created_atIf the mode is set to "check", this output will be the ISO 8601 format date that the lock was claimed, otherwise it will be empty
reasonIf the mode is set to "check", this output will be the reason the deployment lock was claimed, otherwise it will be empty
linkIf the mode is set to "check", this output will be the link to the GitHub issue comment or action run that claimed the lock, otherwise it will be empty
global_lock_claimedThe string "true" if the global lock was claimed
global_lock_releasedThe string "true" if the global lock was released