Closed bodgit closed 1 year ago
Fixed the issue, I had somehow removed the blank line between -----BEGIN PGP PUBLIC KEY BLOCK-----
and the start of the key data in the heredoc. Added the blank line back and it now works correctly.
Apologies for the noise.
Summary
I've used your ruleset template to create a plugin hosted in our private GitHub enterprise account. With a bit of tweaking, I've gotten the release workflow to correctly build and publish the binaries along with the checksums, with GPG being used, such that my release has the following assets:
I've then added an additional
plugin {}
block to.tflint.hcl
along with the GPG public key, however when I runtflint --init
it errors withFailed to install a plugin; Failed to check checksums.txt signature: openpgp: invalid argument: no armored data found
.If I don't set
signing_key
then the plugin installs but complains that I should ideally setsigning_key
.I'm not sure what I'm doing wrong as I've pretty much followed your ruleset template repo. I've checked your aws plugin releases and your
checksums.txt
andchecksums.txt.sig
are of a similar format, I just don't have thechecksums.txt.pem
andchecksums.txt.keyless.sig
as I'm not using cosign which I presume creates these.Command
GITHUB_TOKEN=... tflint --init
Terraform Configuration
TFLint Configuration
Output
TFLint Version
0.47.0
Terraform Version
No response
Operating System