mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
fix: log the URL of the action when it fails schema validation (#810)
``` $ go test -v -run='TestRunner_RunEvent$/local-action-fails-schema-validation' ./act/runner ... [fails-schema-validation/test] ❌ Failure - Main ./local-action-fails-schema-validation/action [fails-schema-validation/test] failed to validate action.y*ml from action './local-action-fails-schema-validation/action' with path '': Line: 2 Column 3: Failed to match null: Line: 2 Column 3: Expected a scalar got mapping Line: 2 Column 3: Failed to match inputs-mapping: Line: 3 Column 5: Failed to match null: Line: 3 Column 5: Expected a scalar got mapping Line: 3 Column 5: Failed to match input-mapping: Line: 3 Column 14: Unknown Variable Access secrets ... ``` <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - bug fixes - [PR](https://code.forgejo.org/forgejo/runner/pulls/810): <!--number 810 --><!--line 0 --><!--description Zml4OiBsb2cgdGhlIFVSTCBvZiB0aGUgYWN0aW9uIHdoZW4gaXQgZmFpbHMgc2NoZW1hIHZhbGlkYXRpb24=-->fix: log the URL of the action when it fails schema validation<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/810 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
ce0c5b2b78
commit
8b7e126c1c
6 changed files with 30 additions and 9 deletions
7
act/runner/testdata/local-action-fails-schema-validation/action/action.yml
vendored
Normal file
7
act/runner/testdata/local-action-fails-schema-validation/action/action.yml
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
inputs:
|
||||
leak:
|
||||
default: '${{ secrets.SOMESECRET }}'
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- run: echo OK
|
Loading…
Add table
Add a link
Reference in a new issue