Piyush Sardana
02/08/2025, 9:49 AM-> "Forbidden. Either you are using a read only token for a request that requires a write token (the most likely cause), or you do not have the required permissions.\n"
read 162 bytes
Conn keep-alive
Forbidden. Either you are using a read only token for a request that requires a write token (the most likely cause), or you do not have the required permissions.
publish-pact:
stage: publish_pact
image: pactfoundation/pact-cli:latest
needs:
- build-and-test
script:
- echo "Publishing consumer pacts to Pact Broker"
- >-
pact-broker publish target/pacts
--broker-base-url="${PACTFLOW_HOST_URL}"
--broker-token="${PACTFLOW_IAM_READ_WRITE_TOKEN}"
--consumer-app-version="${CI_COMMIT_SHA}"
--branch="${CI_COMMIT_BRANCH}"
--merge
--verbose
artifacts:
when: always
rules:
- if: $CI_COMMIT_BRANCHMatt (pactflow.io / pact-js / pact-go)
Piyush Sardana
02/08/2025, 7:45 PMPiyush Sardana
02/09/2025, 6:12 AMMatt (pactflow.io / pact-js / pact-go)
--verbose enabled?Matt (pactflow.io / pact-js / pact-go)
Piyush Sardana
02/09/2025, 9:28 AM