Skip to content

Commit 392ddad

Browse files
authored
Merge pull request #12 from CloudCannon/fix/prevent-seeking-outside-config
Prevent seeking config outside project root
2 parents 7f39783 + b546474 commit 392ddad

3 files changed

Lines changed: 29 additions & 5 deletions

File tree

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"license": "ISC",
6060
"dependencies": {
6161
"@clack/prompts": "1.2.0",
62-
"@cloudcannon/configuration-loader": "0.0.9",
62+
"@cloudcannon/configuration-loader": "0.0.10",
6363
"@cloudcannon/configuration-types": "0.0.58",
6464
"@cloudcannon/gadget": "0.0.32",
6565
"@cloudcannon/sdk": "0.0.5",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: cloudcannon validate [split config outside project root is not validated]
2+
3+
steps:
4+
- step: I have a "project/cloudcannon.config.yml" file with the content {yaml}
5+
yaml: |-
6+
_inputs_from_glob:
7+
- ../outside-inputs.yml
8+
- inside-inputs.yml
9+
- step: I have a "outside-inputs.yml" file with the content {yaml}
10+
yaml: |-
11+
date:
12+
type: date
13+
- step: I have a "project/inside-inputs.yml" file with the content {yaml}
14+
yaml: |-
15+
title:
16+
type: text
17+
- ref: ../../core/run-cli.toolproof.yml
18+
- step: I run {command}
19+
command: |
20+
npm -s run cloudcannon -- validate project --configuration
21+
- snapshot: stdout
22+
snapshot_content: |-
23+
╎✓ valid: cloudcannon.config.yml
24+
╎✓ valid: inside-inputs.yml

0 commit comments

Comments
 (0)