You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the actionlint validation failure "receiver of object dereference "refname" must be type of object but got "string"", but the workflow is showing the values as expected in github actions.
How to replicate:
Given the following (truncated) reusable workflow
workflow.yml:
name: Run test automation group
on:
workflow_call:
inputs:
test_data:
required: true
type: string
jobs:
run-tests:
runs-on: ubuntu-20.04
env:
COMPONENT: ${{ matrix.components.TEST.COMPONENT }}
PROFILE: ${{ matrix.components.TEST.PROFILE }}
strategy:
fail-fast: false
matrix:
components:
- ${{ fromJson(inputs.test_data).TESTS.TEST }}
steps:
- ...
actionlint fails on references to elements in the matrix:
grtest.yml:16:22: receiver of object dereference "test" must be type of object but got "string" [expression]
|
16 | COMPONENT: ${{ matrix.components.TEST.COMPONENT }}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
grtest.yml:17:20: receiver of object dereference "test" must be type of object but got "string" [expression]
|
17 | PROFILE: ${{ matrix.components.TEST.PROFILE }}
Github actions is able to reference these values without issues.
The text was updated successfully, but these errors were encountered:
rhysd
changed the title
Bug: of object dereference "refname" must be type of object but got "string"
Bug: of object dereference must be type of object but got "string"
Jun 19, 2023
rhysd
changed the title
Bug: of object dereference must be type of object but got "string"
Bug: object dereference must be type of object but got "string"
Jun 19, 2023
actionlint version tested : 1.6.23
Issue description:
Getting the actionlint validation failure "receiver of object dereference "refname" must be type of object but got "string"", but the workflow is showing the values as expected in github actions.
How to replicate:
Given the following (truncated) reusable workflow
workflow.yml:
actionlint fails on references to elements in the matrix:
Structure of the 'test_data' json input:
Github actions is able to reference these values without issues.
The text was updated successfully, but these errors were encountered: