File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 branches :
1313 - main
1414
15+ permissions : read-all
16+
1517jobs :
18+ get-token :
19+ runs-on : ubuntu-latest
20+ outputs :
21+ generated_token : ${{ steps.app-token.outputs.token }}
22+ steps :
23+ - name : Generate Token
24+ uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
25+ id : app-token
26+ with :
27+ app-id : ${{ vars.METADATA_SYNC_APP_ID }}
28+ private-key : ${{ secrets.METADATA_SYNC_PRIVATE_KEY }}
29+
1630 update-metadata :
31+ needs : get-token
1732 uses : validatedpatterns/docs/.github/workflows/metadata-docs.yml@main # zizmor: ignore[unpinned-uses]
18- permissions : # Workflow-level permissions
19- contents : read # Required for "read-all"
20- packages : write # Allows writing to packages
21- id-token : write # Allows creating OpenID Connect (OIDC) tokens
33+ permissions :
34+ contents : read
35+ packages : write
36+ id-token : write
2237 secrets :
23- DOCS_TOKEN : ${{ secrets.DOCS_TOKEN }}
24- # For testing you can point to a different branch in the docs repository
25- # with:
26- # DOCS_BRANCH: "main"
38+ DOCS_TOKEN : ${{ needs.get-token.outputs.generated_token }}
You can’t perform that action at this time.
0 commit comments