diff --git a/.github/actions/repo-dispatch/index.js b/.github/actions/repo-dispatch/index.js index 54d94dbeb..b9859b279 100644 --- a/.github/actions/repo-dispatch/index.js +++ b/.github/actions/repo-dispatch/index.js @@ -16,13 +16,6 @@ async function run() {//change function name const [owner, repo] = targetRepo.split('/'); const client = github.getOctokit(token); - console.log("THIS IS THE OWNER " + owner) - console.log("THIS IS THE REPO " + repo) - console.log("THIS IS THE EVENT TYPE " + eventType) - console.log("THIS IS THE CLIENT PAYLOAD " + clientPayload) - - console.log("THIS IS THE CLIENT " + JSON.stringify(client)) - console.log("THIS IS THE CLIENT, rest, repos " + JSON.stringify(client.rest.repos)) // Send a repository dispatch event to the specified repository await client.rest.repos.createDispatchEvent({ owner, diff --git a/.github/workflows/cross-repo-deploy.yml b/.github/workflows/cross-repo-deploy.yml index 00c909095..28813dd7d 100644 --- a/.github/workflows/cross-repo-deploy.yml +++ b/.github/workflows/cross-repo-deploy.yml @@ -27,6 +27,14 @@ jobs: run: | curl -H "Authorization: token $PAT" \ https://api.github.com/repos/${{ github.repository }} + + - name: Check PAT Access to Repository + run: | + curl -H "Authorization: token ${{ secrets.PAT }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/UKHSA-Internal/hpod-ukhsa-generate-webform-url-citizen + env: + PAT: ${{ secrets.PAT }} # - name: Trigger deployment in another repo # uses: ./.github/actions/repo-dispatch