| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
- data ActionsLock = ActionsLock {}
- data Dependency = Dependency {}
- actionKey :: Text -> Maybe Text
- actionRepo :: Text -> Text
- stepActions :: Value -> [Text]
- renderLock :: ActionsLock -> Text
- renameWorkflows :: (Text -> Maybe Text) -> ActionsLock -> ActionsLock
- repoWorkflowKey :: FilePath -> FilePath -> Text
- repoLock :: FilePath -> ActionsLock -> ActionsLock
- repoProblems :: ActionsLock -> FilePath -> Maybe ActionsLock -> Map Text [Text] -> [Text]
- combinedProblems :: ActionsLock -> [Text]
Documentation
data ActionsLock Source #
Constructors
| ActionsLock | |
Fields
| |
Instances
| FromJSON ActionsLock Source # | |
Defined in GitHub.Types.ActionsLock | |
| Show ActionsLock Source # | |
Defined in GitHub.Types.ActionsLock Methods showsPrec :: Int -> ActionsLock -> ShowS # show :: ActionsLock -> String # showList :: [ActionsLock] -> ShowS # | |
| Eq ActionsLock Source # | |
Defined in GitHub.Types.ActionsLock | |
data Dependency Source #
Constructors
| Dependency | |
Instances
| FromJSON Dependency Source # | |
Defined in GitHub.Types.ActionsLock | |
| Show Dependency Source # | |
Defined in GitHub.Types.ActionsLock Methods showsPrec :: Int -> Dependency -> ShowS # show :: Dependency -> String # showList :: [Dependency] -> ShowS # | |
| Eq Dependency Source # | |
Defined in GitHub.Types.ActionsLock | |
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.
renameWorkflows :: (Text -> Maybe Text) -> ActionsLock -> ActionsLock Source #
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.