edlanglois / pkgbuild-action

GitHub action to build and check a PKGBUILD package
MIT License
24 stars 23 forks source link

Is it possible to disable PGP verification of files? #11

Closed bodsch closed 2 years ago

bodsch commented 2 years ago

I am currently trying to integrate a build, but keep failing with this error message: "FAILED (unknown public key C6E319C334410682)".

I have tried to configure the job via the environment variable INPUT_MAKEPKGARGS, but unfortunately this does not have the desired result. My current workflow is here: https://github.com/bodsch/aur-icingadb/blob/main/.github/workflows/main.yml

RiverOnVenus commented 2 years ago

Hi, maybe this can skip the PGP verification.

    - name: Makepkg Build and Check
      id: makepkg
      uses: edlanglois/pkgbuild-action@v1.1.8
      with:
          makepkgArgs: "--skippgpcheck"

It works fine in my workflow.

image

And my current workflow is here: https://github.com/RiverOnVenus/linux-ck-tt/blob/master/.github/workflows/build.yml

RiverOnVenus commented 2 years ago

And I see the action log:

you should use edlanglois/pkgbuild-action@v1.1.8 and use "--skippgpcheck"

- name: Makepkg Build and Check
  id: makepkg
  uses: edlanglois/pkgbuild-action@v1.1.8
  with:
      makepkgArgs: "--skippgpcheck"

Or

If you want to continue to use julian-heng/pkgbuild-action, you can also try julian-heng/pkgbuild-action@import-gpg-keys this: https://github.com/julian-heng/pkgbuild-action/tree/import-gpg-keys

- name: Makepkg Build and Check
  id: makepkg
  uses: julian-heng/pkgbuild-action@import-gpg-keys

this one has a commit that imports gpg keys, which may help you. P.S: I have not used it, I don't know if it works

bodsch commented 2 years ago

Hi @RiverOnVenus !

Thanks for your tip! I have just implemented it successfully. :)