Conversation
Tasks can now declare `dependencies: [...]` listing resource refs that must be built before the task script runs. Bare names are resolved against the task's own component first, then fall back to a global name lookup, matching how `pre` works for task refs. Fully qualified `component:resource` refs are supported too. Also fixes CreateFileOperation to `mkdir -p` the target's parent directory, which was missing and made file resources with nested paths fail with ENOENT. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Resource names can already contain `/` (they come from the YAML map key), so refs to them in task `pre`/`dependencies` and resource `dependencies` need to permit `/` too. Without this, declaring a task that depends on a path-style resource like `fastlane/key.p8` fails config validation even though the resource itself is valid. Component/plugin names (the `Identifier` type) keep the stricter pattern — slashes are only allowed in the name suffix of a qualified ref, not in the `component:` prefix. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Introduces a dedicated resource type to materialize a 1Password file
attachment on disk. Unlike a text-interpolation `${op:...}` reference —
which can't safely carry binary bytes through the template pipeline —
`op/file` expresses the intent literally and writes raw bytes via
`op read --force --out-file`.
Usage:
resources:
fastlane/keystore.jks:
type: op/file
params:
reference: op://MyVault/MyItem/keystore.jks
Internals:
- OnePasswordProvider.fetchFileAttachment(reference, destPath) shells
out to `op read --force --out-file <destPath> <reference>`, which is
the only binary-safe output path on the `op` CLI (stdout replaces
invalid UTF-8 bytes with U+FFFD, corrupting keystores, .p8 keys, etc.).
- OpFileResourceBuilder + FetchOpFileOperation registered as `op/file`.
- schema.json gains an `op/file` branch requiring a `reference` that
starts with `op://`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
c444090 to
7f9e8cd
Compare
llambeau
added a commit
that referenced
this pull request
Apr 23, 2026
Both shipped in #36 but the website reference and secrets guide were never updated, so users had no way to discover either feature from the docs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tasks can now declare
dependencies: [...]listing resource refs that must be built before the task script runs. Bare names are resolved against the task's own component first, then fall back to a global name lookup, matching howpreworks for task refs. Fully qualifiedcomponent:resourcerefs are supported too.Also fixes CreateFileOperation to
mkdir -pthe target's parent directory, which was missing and made file resources with nested paths fail with ENOENT.