Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 22 additions & 12 deletions .github/workflows/update-metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# This job requires a secret called DOCS_TOKEN which should be a PAT token
# that has the permissions described in:
# validatedpatterns/docs/.github/workflows/metadata-docs.yml@main
---
name: Update docs pattern metadata
on:
workflow_dispatch:
Expand All @@ -12,15 +8,29 @@ on:
branches:
- main

permissions:
contents: read

jobs:
get-token:
runs-on: ubuntu-latest
permissions: {}
outputs:
generated_token: ${{ steps.app-token.outputs.token }}
steps:
- name: Generate Token
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
id: app-token
with:
app-id: ${{ vars.METADATA_SYNC_APP_ID }}
private-key: ${{ secrets.METADATA_SYNC_PRIVATE_KEY }}

update-metadata:
needs: get-token
uses: validatedpatterns/docs/.github/workflows/metadata-docs.yml@main # zizmor: ignore[unpinned-uses]
permissions: # Workflow-level permissions
contents: read # Required for "read-all"
packages: write # Allows writing to packages
id-token: write # Allows creating OpenID Connect (OIDC) tokens
permissions:
contents: read
packages: write
id-token: write
secrets:
DOCS_TOKEN: ${{ secrets.DOCS_TOKEN }}
# For testing you can point to a different branch in the docs repository
# with:
# DOCS_BRANCH: "main"
DOCS_TOKEN: ${{ needs.get-token.outputs.generated_token }}
2 changes: 1 addition & 1 deletion TESTPLAN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TravelOps Test Plan

[GitHub Repository](https://github.com/validatedpatterns-sandbox/travelops)
[GitHub Repository](https://github.com/validatedpatterns/travelops)

## PreRequisites

Expand Down
4 changes: 2 additions & 2 deletions pattern-metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: travelops
description: A pattern deploying a demo travel-booking stack on OpenShift with Service Mesh (Istio), mTLS, distributed tracing, and observability
pattern_version: "1.0"
display_name: TravelOps
repo_url: https://github.com/validatedpatterns-sandbox/travelops
repo_url: https://github.com/validatedpatterns/travelops
docs_repo_url: https://github.com/validatedpatterns/docs
issues_url: https://github.com/validatedpatterns-sandbox/travelops/issues
issues_url: https://github.com/validatedpatterns/travelops/issues
docs_url: https://validatedpatterns.io/patterns/travelops/
ci_url: https://validatedpatterns.io/ci/?pattern=travelops
# can be sandbox, tested or maintained
Expand Down
Loading