Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Input does not meet YAML 1.2 "Core Schema" specification: log-public-key #225

Open
fancyTyphoonKitty opened this issue Aug 27, 2024 · 1 comment

Comments

@fancyTyphoonKitty
Copy link

fancyTyphoonKitty commented Aug 27, 2024

Hello,

I'm trying to leverage this action with a self-hosted runner using a container (not the runner agent). I'm not really doing anything too fancy, but when the step runs, it fails with the error Error: Input does not meet YAML 1.2 "Core Schema" specification: log-public-key.

#truncated
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: webfactory/ssh-agent
        uses: webfactory/[email protected]
        with:
          ssh-private-key: |
            ${{ secrets.SSH_DEPLOY_KEY }}

#truncated

When reviewing the action.yml file is vscode, I did notice that the Github Actions vscode extension was flagging the default value for the input in question. Stating Incorrect type. Expected "string".yaml-schema: GitHub Action.

image

@fancyTyphoonKitty
Copy link
Author

Testing update - The issue seems to be specific to using the action within a container. While using the Linux self-hosted runner directly and no a container hosted on the Linux self-hosted runner, the action works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant