try fixing context usage #627
ci.yml
on: push
ci
/
...
/
set-go-matrix
0s
ci
/
...
/
set-go-matrix
0s
ci
/
actionlint
55s
ci
/
...
/
lint
2m 12s
ci
/
...
/
govulncheck
38s
Matrix: ci / codeql / CodeQL Analyze
Matrix: ci / build / build
Matrix: ci / test / test
Annotations
17 errors and 2 warnings
ci / lint / lint:
acme/client.go#L147
nestingReduce: invert if cond, replace body with `continue`, move old body after the statement (gocritic)
|
ci / lint / lint:
cmd/step-agent/main.go#L159
unlambda: replace `func(c *cli.Context) error {
|
ci / lint / lint:
acme/api/handler.go#L175
typeAssertChain: rewrite if-else to type switch statement (gocritic)
|
ci / lint / lint:
cmd/step-agent/main.go#L105
`marshalling` is a misspelling of `marshaling` (misspell)
|
ci / lint / lint:
acme/validation/client.go#L57
superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
ci / lint / lint:
acme/validation/client.go#L9
exported: type name will be used as validation.ValidationResponse by other packages, and that stutters; consider calling this Response (revive)
|
ci / lint / lint:
acme/validation/client.go#L15
exported: type name will be used as validation.ValidationRequest by other packages, and that stutters; consider calling this Request (revive)
|
ci / lint / lint:
cas/sectigocas/eab/client.go#L30
superfluous-else: if block ends with call to panic function, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
ci / lint / lint:
cas/vaultcas/vaultcas.go#L178
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)
|
ci / lint / lint:
acme/challenge.go#L171
var-naming: var errHttp should be errHTTP (revive)
|
ci / test / test (stable):
acme/TestChallenge_Validate/challenge_test.go#L1407
challenge_test.go:1407:
Error Trace: /home/runner/work/pki-acme-service/pki-acme-service/acme/challenge_test.go:1407
Error: Received unexpected error:
unexpected challenge type ""
Test: TestChallenge_Validate/fail/already-invalid
---
|
ci / test / test (stable):
acme/wire_integration_test.go#L137
wire_integration_test.go:137: database file name: /tmp/integration-db-3311891925
wire_integration_test.go:190: directory: {https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/new-nonce https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/new-account https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/new-order https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/revoke-cert https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/key-change <nil>}
wire_integration_test.go:203: nonce: bkQ3OWlBUENJNGJ2YUtTSWlUZ1g5WHREUjBLeXkwOWg
wire_integration_test.go:237: account ID: eupOntLo7O1VgN6tgcSTCXbfpDHTA4oP
wire_integration_test.go:278: authzs IDs: [5IgZlrNDitYv4u6h3mM5lq0sofLLgABs pjVLtZFs2Hfk4e27QKR1Vfu7QMTz6p2e]
time="2024-11-25T15:07:53Z" level=warning msg="marking challenge II9rKH0xKwX2ECevxsXGnb0XbZ9ZIDH6 as invalid: keyAuthorization does not match; expected \"n7VY1kyBzZnRiRY59GcTRX19UUhli6HD.KjCO7b4T5wjYwVXeTZ2bbOxttch8Z8OQdstZsYXlPak\", but got \"token.KjCO7b4T5wjYwVXeTZ2bbOxttch8Z8OQdstZsYXlPak\""
wire_integration_test.go:428: challenge: II9rKH0xKwX2ECevxsXGnb0XbZ9ZIDH6 invalid
time="2024-11-25T15:07:53Z" level=warning msg="marking challenge t42Q1DaRkof5EhVX9Vu5D4qpX2z8ZvCh as invalid: failed validating Wire access token: failed validation: go-jose/go-jose/jwt: validation failed, invalid audience claim (aud)"
wire_integration_test.go:428: challenge: t42Q1DaRkof5EhVX9Vu5D4qpX2z8ZvCh invalid
wire_integration_test.go:452: updated challenge: II9rKH0xKwX2ECevxsXGnb0XbZ9ZIDH6 valid
wire_integration_test.go:452: updated challenge: t42Q1DaRkof5EhVX9Vu5D4qpX2z8ZvCh valid
wire_integration_test.go:490: updated order status: ready
wire_integration_test.go:580:
Error Trace: /home/runner/work/pki-acme-service/pki-acme-service/acme/api/wire_integration_test.go:580
/home/runner/work/pki-acme-service/pki-acme-service/acme/api/wire_integration_test.go:586
Error: Not equal:
expected: "valid"
actual : "processing"
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-(acme.Status) (len=5) "valid"
+(acme.Status) (len=10) "processing"
Test: TestWireIntegration
---
|
ci / test / test (stable)
Process completed with exit code 2.
|
ci / test / test (oldstable)
The job was canceled because "stable" failed.
|
ci / test / test (oldstable):
acme/TestChallenge_Validate/challenge_test.go#L1407
challenge_test.go:1407:
Error Trace: /home/runner/work/pki-acme-service/pki-acme-service/acme/challenge_test.go:1407
Error: Received unexpected error:
unexpected challenge type ""
Test: TestChallenge_Validate/fail/already-invalid
---
|
ci / test / test (oldstable):
acme/wire_integration_test.go#L137
wire_integration_test.go:137: database file name: /tmp/integration-db-4079372067
wire_integration_test.go:190: directory: {https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/new-nonce https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/new-account https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/new-order https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/revoke-cert https://test.ca.smallstep.com/acme/test@acme-%3Ctest%3Eprovisioner.com/key-change <nil>}
wire_integration_test.go:203: nonce: aGpRS2ttZzdQR0VDUkNKVjdua3BmV0pNTkRxZmt0d2o
wire_integration_test.go:237: account ID: M6Tad39efSwnBUMXerqx2OFt3rQKqdkj
wire_integration_test.go:278: authzs IDs: [12OUGP9qC1Ko5VQzEg836e8uGgwhaM4C KfDXViEU8nV24LUGOGQD8g1yEEsFPnXf]
time="2024-11-25T15:07:54Z" level=warning msg="marking challenge WmxxMyimzOzDg1G44VxNHPMvnFCww7Oj as invalid: keyAuthorization does not match; expected \"kNd0rZjtOeT24pc2LC0bq9jqaGAYCYas.CR1ypsP1ZmyPE1S6-U_BV_Z39uN5UYA-UwnaZcTuU9A\", but got \"token.CR1ypsP1ZmyPE1S6-U_BV_Z39uN5UYA-UwnaZcTuU9A\""
wire_integration_test.go:428: challenge: WmxxMyimzOzDg1G44VxNHPMvnFCww7Oj invalid
time="2024-11-25T15:07:54Z" level=warning msg="marking challenge TWgD0wU6SiDZEXRe1AH4DWR4mdfnrRJS as invalid: failed validating Wire access token: failed validation: go-jose/go-jose/jwt: validation failed, invalid audience claim (aud)"
wire_integration_test.go:428: challenge: TWgD0wU6SiDZEXRe1AH4DWR4mdfnrRJS invalid
wire_integration_test.go:452: updated challenge: WmxxMyimzOzDg1G44VxNHPMvnFCww7Oj valid
wire_integration_test.go:452: updated challenge: TWgD0wU6SiDZEXRe1AH4DWR4mdfnrRJS valid
wire_integration_test.go:490: updated order status: ready
wire_integration_test.go:580:
Error Trace: /home/runner/work/pki-acme-service/pki-acme-service/acme/api/wire_integration_test.go:580
/home/runner/work/pki-acme-service/pki-acme-service/acme/api/wire_integration_test.go:586
Error: Not equal:
expected: "valid"
actual : "processing"
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,2 @@
-(acme.Status) (len=5) "valid"
+(acme.Status) (len=10) "processing"
Test: TestWireIntegration
---
|
ci / test / test (oldstable)
Process completed with exit code 2.
|
ci / build / build (oldstable)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|
ci / test / test (oldstable)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
|