{% extends "base.html" %} {% block title %}{% if webhook %}Edit Webhook{% else %}Add Webhook{% endif %}{% endblock %} {% block content %}

{% if webhook %}Edit Webhook{% else %}Add Webhook{% endif %}

{% if webhook and webhook.get('attestation_conditions') %} {% for cond in webhook.get('attestation_conditions') %}
{% endfor %} {% endif %}
Each condition is ANDed. For a list-typed context field, the value must be in the list.
Templating: Use variables in the form --varname-- (two dashes, name, two dashes) anywhere in the URL, headers, or content.
Supported variables:
  • product-key (product key string), product-version (product version string)
  • attestation_raw (raw file content, as bytes), attestation_predicate (decoded predicate), attestation_predicate_base64 (base64-encoded predicate)
  • Any context field: --contextkey-- (empty string if missing)
  • Labels: --labels.labelname-- (gets value for label labelname, empty if not found)
Examples:
  • {"Authorization": "Bearer --secret--"} → {"Authorization": "Bearer ghpat-1232455"}
  • {"predicate": --attestation_predicate--} → {"predicate": { ... }}
If a variable is not found, it is replaced with an empty string.
Cancel
{% endblock %}