ssh-agent icon indicating copy to clipboard operation
ssh-agent copied to clipboard

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

Open fancyTyphoonKitty opened this issue 1 year ago • 1 comments

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 avatar Aug 27 '24 13:08 fancyTyphoonKitty

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.

fancyTyphoonKitty avatar Aug 28 '24 14:08 fancyTyphoonKitty