--- id: R6.l family: GR-VAL level: extended profiles: [storage-api, editor-client] posture: normative-target added: "1.0" changed: "1.0" source: https://flowdrop.io/spec/rules/gr-val/r6-l specification: FlowDrop Workflow Specification 1.0 licence: CC BY 4.0 --- # R6.l — A malformed secret reference warns the author *GR-VAL (Part I) · level: extended · profiles: storage-api, editor-client · added in 1.0* Writing `{{ secrets.NAME }}` instead of `${{ secrets.NAME }}` produces a literal string at execution rather than a secret, silently and with no error. The warning exists to catch the missing `$` while the author is still looking. ## The rule > **Normative.** This is the rule. > > 1. A string in a node's `config` that contains `{{ secrets.` without the leading `$` MUST yield a warning at `node.{id}.config.{key}` telling the author to write `${{ secrets.NAME }}`. > > 2. The warning MUST also be yielded for a reference nested at any depth inside structured config. > > 3. A correctly written `${{ secrets.NAME }}` MUST NOT produce the warning. > > 4. The save MUST NOT be blocked either way. ## What it means The check exists because a missing `$` fails silently at run time rather than at save time: `{{ secrets.NAME }}` without the leading `$` is not a secret reference at all, so nothing about it stops the save or fails the run — it simply never resolves to the secret the author meant. The warning is the only point where the missing character is still visible. It reaches a reference no matter how deep it sits inside a key's value, so a reference nested a level down still draws the warning. ## Example ```json title="A header value nested inside a node's config" verdict="warns" {"headers": {"Authorization": "Bearer {{ secrets.stripe }}"}} ``` ```json title="The same header written with the leading $" verdict="accepted" {"headers": {"Authorization": "Bearer ${{ secrets.stripe }}"}} ``` ## Why Recorded under [OPEN-25](https://flowdrop.io/spec/rulings/open-25). --- Rule identifiers are permanent and are never renumbered. This specification carries no implementation status: each implementation publishes its own standing against these rules. Licensed CC BY 4.0.