99 image_version :
1010 required : true
1111 type : string
12- default : v1.0 .0
12+ default : v1.1 .0
1313 description : " dirctl version to use"
1414 server_addr :
1515 required : true
@@ -28,27 +28,10 @@ jobs:
2828 - name : Checkout code
2929 uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
31- - name : Build dirctl from branch source
32- id : build-dirctl
33- uses : ./.github/actions/build-dirctl
31+ - name : Setup dirctl
32+ uses : ./.github/actions/setup-dirctl
3433 with :
35- go_version : " 1.26.1"
36-
37- # - name: Setup dirctl
38- # uses: ./.github/actions/setup-dirctl
39- # with:
40- # version: ${{ inputs.image_version }}
41-
42- - name : Fetch Directory OIDC token
43- id : oidc-dir
44- uses : ./.github/actions/fetch-oidc-token
45- with :
46- audience : dir
47-
48- - name : Export OIDC environment
49- run : |
50- echo "DIRECTORY_CLIENT_AUTH_MODE=oidc" >> "$GITHUB_ENV"
51- echo "DIRECTORY_CLIENT_OIDC_TOKEN=${{ steps.oidc-dir.outputs.token }}" >> "$GITHUB_ENV"
34+ version : ${{ inputs.image_version }}
5235
5336 - name : Validate record
5437 uses : ./.github/actions/validate-record
@@ -61,28 +44,33 @@ jobs:
6144 with :
6245 record_paths : tests/e2e/shared/testdata/record_100.json
6346 server_addr : ${{ inputs.server_addr }}
47+ github_token : ${{ secrets.DIR_DEMO_WORKFLOW_PAT }}
6448
6549 - name : Sign record (OIDC)
6650 uses : ./.github/actions/sign-record
6751 with :
6852 cids : ${{ steps.push.outputs.cids }}
6953 oidc_client_id : https://github.com/${{ github.repository }}/.github/workflows/demo-dir.yaml@${{ github.ref }}
7054 server_addr : ${{ inputs.server_addr }}
55+ github_token : ${{ secrets.DIR_DEMO_WORKFLOW_PAT }}
7156
7257 - name : Publish record
7358 uses : ./.github/actions/publish-record
7459 with :
7560 cids : ${{ steps.push.outputs.cids }}
7661 server_addr : ${{ inputs.server_addr }}
62+ github_token : ${{ secrets.DIR_DEMO_WORKFLOW_PAT }}
7763
7864 - name : Search for record
7965 env :
8066 SERVER_ADDR : ${{ inputs.server_addr }}
81- run : dirctl search --name "burger_seller_agent" --server-addr="$SERVER_ADDR"
67+ GITHUB_TOKEN : ${{ secrets.DIR_DEMO_WORKFLOW_PAT }}
68+ run : dirctl search --name "burger_seller_agent" --server-addr="$SERVER_ADDR" --github-token="$GITHUB_TOKEN"
8269
8370 - name : Verify record
8471 env :
8572 SERVER_ADDR : ${{ inputs.server_addr }}
73+ GITHUB_TOKEN : ${{ secrets.DIR_DEMO_WORKFLOW_PAT }}
8674 run : |
8775 CID=$(echo '${{ steps.push.outputs.cids }}' | jq -r '.[]')
88- dirctl verify "$CID" --server-addr="$SERVER_ADDR"
76+ dirctl verify "$CID" --server-addr="$SERVER_ADDR" --github-token="$GITHUB_TOKEN"
0 commit comments