Debian Codegraph @

runtime/queries/github-action/injections.scm

raw symbols SCIP
1 ; inherits: yaml
2
3 ; JavaScript for workflow scripting (inline)
4 (block_mapping
5 (block_mapping_pair
6 key: (flow_node) @_uses (#eq? @_uses "uses")
7 value: (flow_node) @_actions_ghs (#match? @_actions_ghs "^actions/github-script"))
8 (block_mapping_pair
9 key: (flow_node) @_with (#eq? @_with "with")
10 value: (block_node
11 (block_mapping
12 (block_mapping_pair
13 key: (flow_node) @_run (#eq? @_run "script")
14 value: (flow_node
15 (plain_scalar
16 (string_scalar) @injection.content
17 (#set! injection.language "javascript"))))))))
18
19 ; JavaScript for workflow scripting (block)
20 (block_mapping
21 (block_mapping_pair
22 key: (flow_node) @_uses (#eq? @_uses "uses")
23 value: (flow_node) @_actions_ghs (#match? @_actions_ghs "^actions/github-script"))
24 (block_mapping_pair
25 key: (flow_node) @_with (#any-of? @_with "with")
26 value: (block_node
27 (block_mapping
28 (block_mapping_pair
29 key: (flow_node) @_run (#any-of? @_run "script")
30 value: (block_node
31 (block_scalar) @injection.content
32 (#set! injection.language "javascript")))))))