github-tools
Safe HaskellNone
LanguageHaskell2010

GitHub.Types.ActionsLock

Description

The workflow dependency lockfile, .githubworkflowsactions.lock, as `gh actions-lock` writes it: which actions each workflow's steps use, and the commit each of those actions is pinned to.

A combined lock holds the workflows of several repositories, named by their path in a workspace ("btox.githubworkflows/ci.yml"), so that every repository's lock can be cut from it with the same commits.

Synopsis

Documentation

data Dependency Source #

Constructors

Dependency 

Fields

actionKey :: Text -> Maybe Text Source #

How actions.lock names the action a step uses: its repository and ref. Local actions and containers aren't locked.

actionRepo :: Text -> Text Source #

The repository an action lives in, lowercased ("google/clusterfuzzlite" for "googleclusterfuzzliteactions/run_fuzzers").

stepActions :: Value -> [Text] Source #

The actions a workflow's steps use. Reusable workflows (jobs.id.uses) aren't locked.

renderLock :: ActionsLock -> Text Source #

The lock in the layout `gh actions-lock` writes, so either tool can update a lock without changing anything else in it.

repoWorkflowKey :: FilePath -> FilePath -> Text Source #

A workflow's name in a combined lock, given its repository's path in the workspace ("." for the workspace itself) and its file name.

repoLock :: FilePath -> ActionsLock -> ActionsLock Source #

A repository's lock, cut from a combined lock.

repoProblems :: ActionsLock -> FilePath -> Maybe ActionsLock -> Map Text [Text] -> [Text] Source #

What's wrong with a repository's actions.lock (Nothing if it has none), given what its workflows use and the combined lock it should be cut from.

combinedProblems :: ActionsLock -> [Text] Source #

What's wrong with a combined lock: every action must be pinned, and each action's repository used at one ref in all workflows.