This action opens an intention, so a service can access the Broker APIs. The ability to do the actions in the intention will be checked against business rules.
If you encounter an error, ensure that the Broker URL is correct, and your token is valid.
Please refer to the NR Broker Repository for full usage details.
- uses: bcgov-nr/action-broker-intention-open@v2
with:
# The broker account JWT to use
broker_jwt: ''
# The path to the intention to send to the broker
intention_path: ''
# The broker url.
# Default: 'https://broker.io.nrs.gov.bc.ca'
broker_url: ''
# Send quickstart parameter. Valid for intentions with a single action.
# If true, the action will be started automatically.
# Default: false
quickstart: ''
# Time to live (ttl) of the intention. The intention must be closed (and
# all actions should finish) before the TTL expires. Set to explicitly send
# the requested TTL (in seconds). If TTL is not set (and not sent), the
# Broker's default is used.
# Default: Use Broker default
ttl: ''
This action outputs the intention/action tokens and intention ID as environment variables. The trace ids (for viewing in observability) will be output in the console.
This is the token used to close the intention with the action-broker-intention-close action.
This is used to uniquely identify an intention. It can be used to view the intention in observability and refer to this intention in follow-on intentions.
Each action within the intention has an 'id'. The capitalized 'id' property is appended to 'ACTION_TOKEN_' and set in the environment. This token can be used to start and end an action, retrieve secrets, and provision application access.
The scripts and documentation in this project are released under the Apache License