webfactory / ssh-agent

GitHub Action to setup `ssh-agent` with a private key
MIT License
1.19k stars 247 forks source link

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

Open fancyTyphoonKitty opened 2 weeks ago

fancyTyphoonKitty commented 2 weeks ago

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/ssh-agent@v0.9.0
        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 commented 2 weeks ago

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.