Skip to content

feat: add policy links to attestation questions#403

Merged
coopernetes merged 1 commit into
mainfrom
feat/attestation-links
Jul 9, 2026
Merged

feat: add policy links to attestation questions#403
coopernetes merged 1 commit into
mainfrom
feat/attestation-links

Conversation

@coopernetes

Copy link
Copy Markdown
Member

Summary

  • Adds optional links: [{text, url}] field to attestation questions for surfacing policy/compliance URLs in the review form
  • Links render as always-visible anchors below each question label — no hover required
  • Removes tooltip field (was only used as placeholder text on text inputs; superseded by links)
  • Non-breaking: existing configs with no links work unchanged

Config shape

attestations:
  - id: appsec-policy
    type: checkbox
    label: "I confirm this change meets our AppSec requirements"
    required: true
    links:
      - text: "AppSec Policy"
        url: "https://wiki.example.com/appsec"
  - id: ospo-license
    type: checkbox
    label: "I confirm this repo complies with our software license policy"
    required: true
    links:
      - text: "OSPO License Policy"
        url: "https://wiki.example.com/ospo/license"
      - text: "Conflict of Interest Guide"
        url: "https://wiki.example.com/ospo/coi"

Test plan

  • ./gradlew build passes
  • Links render below question labels in the push review form
  • Existing attestation configs with no links field load without errors

closes #366

Adds an optional `links` field to attestation questions so operators can
surface policy/compliance URLs directly in the review form. Links render
as always-visible anchors below each question label — no hover required,
which matters for mandatory compliance acknowledgement.

Config shape (non-breaking, existing configs unchanged):

  attestations:
    - id: appsec-policy
      type: checkbox
      label: "I confirm this change meets our AppSec requirements"
      required: true
      links:
        - text: "AppSec Policy"
          url: "https://wiki.example.com/appsec"

Also fixes tooltip for checkbox/dropdown questions: previously ignored,
now rendered as a `title` attribute on the question label.

Adds gitea-push-pass.sh and gitea-push-fail.sh smoke test scripts that
target the local Gitea Compose stack instead of github.com repos.

closes #366

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coopernetes coopernetes enabled auto-merge July 9, 2026 01:13
@coopernetes coopernetes merged commit 4288819 into main Jul 9, 2026
18 checks passed
@coopernetes coopernetes deleted the feat/attestation-links branch July 9, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add policy links to attestation questions

1 participant