andykenward / github-actions-cloudflare-pages

GitHub Action to deploy to Cloudflare Pages
MIT License
16 stars 0 forks source link

Document required permissions for private repositories #234

Closed chalkygames123 closed 6 months ago

chalkygames123 commented 7 months ago

I used this action on a private repository, but it failed to read GitHub environments. To resolve this, it looks like the actions:read permission is required.

It would be nice if the README and the workflow examples clarify what permissions this action requires for private repositories.

For more information, see "Deployment environments."

andykenward commented 6 months ago

@chalkygames123 Did it work on a private repository? I've only built it to work on public repositories using the permissions allowed by a GITHUB_TOKEN, to avoid setting up a personal access token. Depending on the type of GitHub account and repository we might not have access to the deployment environment API in a private repository even with the correct permission added to the action .yml.

I need to look into it more. Might need write access to deployment environments for the initial setup. Will setup a private repository to test against. I remember that you had to create the environment manually first in a private, but this might have changed as GitHub has added more features for free accounts and a private repository.

But definitely need to update the README with more details about using on a private repository. Sorry for the inconvenience.

chalkygames123 commented 6 months ago

Yes, I believe it did work with GITHUB_TOKEN in a private repo once I just added the actions:read permission.

The repo I tested against is in an organization on the GitHub Team plan.

I just wanted to contribute to improving this action, so no worries!

chalkygames123 commented 6 months ago

I remember that you had to create the environment manually first in a private, but this might have changed as GitHub has added more features for free accounts and a private repository.

FYI, running this action on my private repository with no deployment environment defined by passing 'production' to the github-environment input resulted in the following error:

Is production branch, deleting old deployments but latest 5
No deployments found to delete
Error: GitHub Environment: Errors - [{"type":"NOT_FOUND","path":["repository","environment"],"locations":[{"line":4,"column":5}],"message":"Could not resolve to an Environment with the name production."}]
file:///home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566/dist/index.js:2368
    throw new Error(`GitHub Environment: Not created for ${gitHubEnvironment}`);
          ^

Error: GitHub Environment: Not created for production
    at checkEnvironment (file:///home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566/dist/index.js:2368:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async createGitHubDeployment (file:///home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566/dist/index.js:2440:27)
    at async run (file:///home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566/dist/index.js:2861:3)

Node.js v20.8.1
chalkygames123 commented 6 months ago

I realized I didn't test the deleting deployments, and it turns out this action always fails to inactivate GitHub deployments for the preview environment either in a private or public repo with the following error:

Error updating GitHub deployment status: [{"type":"FORBIDDEN","path":["createDeploymentStatus"],"extensions":{"saml_failure":false},"locations":[{"line":3,"column":3}],"message":"Resource not accessible by integration"}]

I have taken a look into the GitHub GraphQL API docs but couldn't find any information about the required permissions. Also, setting permissions: write-all had no effect 🤷

My last attempt: https://github.com/chalkygames123/sandbox-actions/actions/runs/8151873285/job/22280423259?pr=20

The log, just in case:

0_Delete deployments.txt

2024-03-05T06:13:57.7191694Z ##[debug]Starting: Delete deployments
2024-03-05T06:13:57.7216051Z ##[debug]Cleaning runner temp folder: /home/runner/work/_temp
2024-03-05T06:13:57.7460867Z ##[debug]Starting: Set up job
2024-03-05T06:13:57.7461598Z Current runner version: '2.314.1'
2024-03-05T06:13:57.7483896Z ##[group]Operating System
2024-03-05T06:13:57.7484506Z Ubuntu
2024-03-05T06:13:57.7485009Z 22.04.4
2024-03-05T06:13:57.7485323Z LTS
2024-03-05T06:13:57.7485671Z ##[endgroup]
2024-03-05T06:13:57.7486166Z ##[group]Runner Image
2024-03-05T06:13:57.7486631Z Image: ubuntu-22.04
2024-03-05T06:13:57.7487016Z Version: 20240225.1.0
2024-03-05T06:13:57.7488215Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240225.1/images/ubuntu/Ubuntu2204-Readme.md
2024-03-05T06:13:57.7489785Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240225.1
2024-03-05T06:13:57.7490728Z ##[endgroup]
2024-03-05T06:13:57.7491197Z ##[group]Runner Image Provisioner
2024-03-05T06:13:57.7491775Z 2.0.347.1
2024-03-05T06:13:57.7492379Z ##[endgroup]
2024-03-05T06:13:57.7493443Z ##[group]GITHUB_TOKEN Permissions
2024-03-05T06:13:57.7495257Z Contents: read
2024-03-05T06:13:57.7495712Z Metadata: read
2024-03-05T06:13:57.7496163Z Packages: read
2024-03-05T06:13:57.7496642Z ##[endgroup]
2024-03-05T06:13:57.7499777Z Secret source: Actions
2024-03-05T06:13:57.7500521Z ##[debug]Primary repository: chalkygames123/sandbox-actions
2024-03-05T06:13:57.7501393Z Prepare workflow directory
2024-03-05T06:13:57.7569636Z ##[debug]Creating pipeline directory: '/home/runner/work/sandbox-actions'
2024-03-05T06:13:57.7573541Z ##[debug]Creating workspace directory: '/home/runner/work/sandbox-actions/sandbox-actions'
2024-03-05T06:13:57.7575331Z ##[debug]Update context data
2024-03-05T06:13:57.7579175Z ##[debug]Evaluating job-level environment variables
2024-03-05T06:13:57.8280183Z ##[debug]Evaluating: secrets.CLOUDFLARE_API_TOKEN
2024-03-05T06:13:57.8285776Z ##[debug]Evaluating Index:
2024-03-05T06:13:57.8287896Z ##[debug]..Evaluating secrets:
2024-03-05T06:13:57.8302864Z ##[debug]..=> Object
2024-03-05T06:13:57.8317876Z ##[debug]..Evaluating String:
2024-03-05T06:13:57.8318947Z ##[debug]..=> 'CLOUDFLARE_API_TOKEN'
2024-03-05T06:13:57.8323499Z ##[debug]=> '***'
2024-03-05T06:13:57.8326610Z ##[debug]Result: '***'
2024-03-05T06:13:57.8347464Z ##[debug]Evaluating: vars.CLOUDFLARE_ACCOUNT_ID
2024-03-05T06:13:57.8348135Z ##[debug]Evaluating Index:
2024-03-05T06:13:57.8348662Z ##[debug]..Evaluating vars:
2024-03-05T06:13:57.8349345Z ##[debug]..=> Object
2024-03-05T06:13:57.8349841Z ##[debug]..Evaluating String:
2024-03-05T06:13:57.8350396Z ##[debug]..=> 'CLOUDFLARE_ACCOUNT_ID'
2024-03-05T06:13:57.8351200Z ##[debug]=> 'ec7fe33428e9cfe36fcd26a955f30a1c'
2024-03-05T06:13:57.8351922Z ##[debug]Result: 'ec7fe33428e9cfe36fcd26a955f30a1c'
2024-03-05T06:13:57.8353017Z ##[debug]Evaluating: vars.CLOUDFLARE_PROJECT_NAME
2024-03-05T06:13:57.8353800Z ##[debug]Evaluating Index:
2024-03-05T06:13:57.8354271Z ##[debug]..Evaluating vars:
2024-03-05T06:13:57.8354768Z ##[debug]..=> Object
2024-03-05T06:13:57.8355333Z ##[debug]..Evaluating String:
2024-03-05T06:13:57.8355893Z ##[debug]..=> 'CLOUDFLARE_PROJECT_NAME'
2024-03-05T06:13:57.8356568Z ##[debug]=> 'sandbox-actions'
2024-03-05T06:13:57.8357075Z ##[debug]Result: 'sandbox-actions'
2024-03-05T06:13:57.8372607Z ##[debug]Evaluating job container
2024-03-05T06:13:57.8375499Z ##[debug]Evaluating job service containers
2024-03-05T06:13:57.8377845Z ##[debug]Evaluating job defaults
2024-03-05T06:13:57.8503683Z Prepare all required actions
2024-03-05T06:13:57.8661522Z Getting action download info
2024-03-05T06:13:58.0641285Z Download action repository 'actions/download-artifact@v4' (SHA:c850b930e6ba138125429b7e5c93fc707a7f8427)
2024-03-05T06:13:58.8896300Z ##[debug]Download 'https://api.github.com/repos/actions/download-artifact/tarball/c850b930e6ba138125429b7e5c93fc707a7f8427' to '/home/runner/work/_actions/_temp_e3a8f40f-3291-4b37-8a7b-45db1e3e6804/b672924e-6cbd-49bd-9b8f-2d1f91661364.tar.gz'
2024-03-05T06:13:58.9915632Z ##[debug]Unwrap 'actions-download-artifact-c850b93' to '/home/runner/work/_actions/actions/download-artifact/v4'
2024-03-05T06:13:59.0177383Z ##[debug]Archive '/home/runner/work/_actions/_temp_e3a8f40f-3291-4b37-8a7b-45db1e3e6804/b672924e-6cbd-49bd-9b8f-2d1f91661364.tar.gz' has been unzipped into '/home/runner/work/_actions/actions/download-artifact/v4'.
2024-03-05T06:13:59.0319485Z Download action repository 'unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566' (SHA:8c09c46bd39321b4aa3784852491d9e4f09e1566)
2024-03-05T06:13:59.8930820Z ##[debug]Download 'https://api.github.com/repos/unlike-ltd/github-actions-cloudflare-pages/tarball/8c09c46bd39321b4aa3784852491d9e4f09e1566' to '/home/runner/work/_actions/_temp_47a2191a-159b-4dc1-a2f7-df10df4fdb51/862f001f-86e6-4f48-9239-58682da137fd.tar.gz'
2024-03-05T06:13:59.9236267Z ##[debug]Unwrap 'unlike-ltd-github-actions-cloudflare-pages-8c09c46' to '/home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566'
2024-03-05T06:13:59.9466524Z ##[debug]Archive '/home/runner/work/_actions/_temp_47a2191a-159b-4dc1-a2f7-df10df4fdb51/862f001f-86e6-4f48-9239-58682da137fd.tar.gz' has been unzipped into '/home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566'.
2024-03-05T06:13:59.9559390Z ##[debug]action.yml for action: '/home/runner/work/_actions/actions/download-artifact/v4/action.yml'.
2024-03-05T06:14:00.0161019Z ##[debug]action.yml for action: '/home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566/action.yml'.
2024-03-05T06:14:00.0242379Z ##[debug]Set step '__run' display name to: 'Check if required variables are defined'
2024-03-05T06:14:00.0244257Z ##[debug]Set step '__actions_download-artifact' display name to: 'Run actions/download-artifact@v4'
2024-03-05T06:14:00.0246255Z ##[debug]Set step '__unlike-ltd_github-actions-cloudflare-pages' display name to: 'Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566'
2024-03-05T06:14:00.0247560Z Complete job name: Delete deployments
2024-03-05T06:14:00.0261054Z ##[debug]Collect running processes for tracking orphan processes.
2024-03-05T06:14:00.0485914Z ##[debug]Finishing: Set up job
2024-03-05T06:14:00.0683009Z ##[debug]Evaluating condition for step: 'Check if required variables are defined'
2024-03-05T06:14:00.0713204Z ##[debug]Evaluating: success()
2024-03-05T06:14:00.0714330Z ##[debug]Evaluating success:
2024-03-05T06:14:00.0724573Z ##[debug]=> true
2024-03-05T06:14:00.0726853Z ##[debug]Result: true
2024-03-05T06:14:00.0743052Z ##[debug]Starting: Check if required variables are defined
2024-03-05T06:14:00.0910001Z ##[debug]Loading inputs
2024-03-05T06:14:00.0917982Z ##[debug]Loading env
2024-03-05T06:14:00.1005956Z ##[group]Run echo "CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN:?secret is not defined}"
2024-03-05T06:14:00.1006784Z echo "CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN:?secret is not defined}"
2024-03-05T06:14:00.1007605Z echo "CLOUDFLARE_ACCOUNT_ID: ${CLOUDFLARE_ACCOUNT_ID:?configuration variable is not defined}"
2024-03-05T06:14:00.1008428Z echo "CLOUDFLARE_PROJECT_NAME: ${CLOUDFLARE_PROJECT_NAME:?configuration variable is not defined}"
2024-03-05T06:14:00.1051676Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2024-03-05T06:14:00.1052121Z env:
2024-03-05T06:14:00.1052665Z   CLOUDFLARE_API_TOKEN: ***
2024-03-05T06:14:00.1053084Z   CLOUDFLARE_ACCOUNT_ID: ec7fe33428e9cfe36fcd26a955f30a1c
2024-03-05T06:14:00.1053511Z   CLOUDFLARE_PROJECT_NAME: sandbox-actions
2024-03-05T06:14:00.1053846Z ##[endgroup]
2024-03-05T06:14:00.1129226Z ##[debug]Overwrite 'shell' base on job defaults.
2024-03-05T06:14:00.1184277Z ##[debug]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/_temp/d4342563-77ad-4ccc-88dd-622b79ef31f4.sh
2024-03-05T06:14:00.1518427Z CLOUDFLARE_API_TOKEN: ***
2024-03-05T06:14:00.1518877Z CLOUDFLARE_ACCOUNT_ID: ec7fe33428e9cfe36fcd26a955f30a1c
2024-03-05T06:14:00.1519807Z CLOUDFLARE_PROJECT_NAME: sandbox-actions
2024-03-05T06:14:00.1645179Z ##[debug]Finishing: Check if required variables are defined
2024-03-05T06:14:00.1655883Z ##[debug]Evaluating condition for step: 'Run actions/download-artifact@v4'
2024-03-05T06:14:00.1679095Z ##[debug]Evaluating: (success() && ((github.event_name != 'pull_request') || (github.event.action != 'closed')))
2024-03-05T06:14:00.1679895Z ##[debug]Evaluating And:
2024-03-05T06:14:00.1683909Z ##[debug]..Evaluating success:
2024-03-05T06:14:00.1684514Z ##[debug]..=> true
2024-03-05T06:14:00.1684916Z ##[debug]..Evaluating Or:
2024-03-05T06:14:00.1688376Z ##[debug]....Evaluating NotEqual:
2024-03-05T06:14:00.1689918Z ##[debug]......Evaluating Index:
2024-03-05T06:14:00.1690348Z ##[debug]........Evaluating github:
2024-03-05T06:14:00.1690789Z ##[debug]........=> Object
2024-03-05T06:14:00.1691192Z ##[debug]........Evaluating String:
2024-03-05T06:14:00.1691608Z ##[debug]........=> 'event_name'
2024-03-05T06:14:00.1692106Z ##[debug]......=> 'pull_request'
2024-03-05T06:14:00.1692537Z ##[debug]......Evaluating String:
2024-03-05T06:14:00.1692929Z ##[debug]......=> 'pull_request'
2024-03-05T06:14:00.1696463Z ##[debug]....=> false
2024-03-05T06:14:00.1697058Z ##[debug]....Evaluating NotEqual:
2024-03-05T06:14:00.1697473Z ##[debug]......Evaluating Index:
2024-03-05T06:14:00.1697873Z ##[debug]........Evaluating Index:
2024-03-05T06:14:00.1698286Z ##[debug]..........Evaluating github:
2024-03-05T06:14:00.1698707Z ##[debug]..........=> Object
2024-03-05T06:14:00.1699123Z ##[debug]..........Evaluating String:
2024-03-05T06:14:00.1699527Z ##[debug]..........=> 'event'
2024-03-05T06:14:00.1700018Z ##[debug]........=> Object
2024-03-05T06:14:00.1700405Z ##[debug]........Evaluating String:
2024-03-05T06:14:00.1700792Z ##[debug]........=> 'action'
2024-03-05T06:14:00.1701183Z ##[debug]......=> 'closed'
2024-03-05T06:14:00.1701552Z ##[debug]......Evaluating String:
2024-03-05T06:14:00.1701934Z ##[debug]......=> 'closed'
2024-03-05T06:14:00.1702305Z ##[debug]....=> false
2024-03-05T06:14:00.1703074Z ##[debug]..=> false
2024-03-05T06:14:00.1703680Z ##[debug]=> false
2024-03-05T06:14:00.1708821Z ##[debug]Expanded: (true && (('pull_request' != 'pull_request') || ('closed' != 'closed')))
2024-03-05T06:14:00.1709520Z ##[debug]Result: false
2024-03-05T06:14:00.1715609Z ##[debug]Evaluating condition for step: 'Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566'
2024-03-05T06:14:00.1717083Z ##[debug]Evaluating: success()
2024-03-05T06:14:00.1717496Z ##[debug]Evaluating success:
2024-03-05T06:14:00.1717923Z ##[debug]=> true
2024-03-05T06:14:00.1718339Z ##[debug]Result: true
2024-03-05T06:14:00.1719168Z ##[debug]Starting: Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566
2024-03-05T06:14:00.1743399Z ##[debug]Loading inputs
2024-03-05T06:14:00.1744413Z ##[debug]Evaluating: secrets.CLOUDFLARE_API_TOKEN
2024-03-05T06:14:00.1744823Z ##[debug]Evaluating Index:
2024-03-05T06:14:00.1745127Z ##[debug]..Evaluating secrets:
2024-03-05T06:14:00.1745434Z ##[debug]..=> Object
2024-03-05T06:14:00.1745708Z ##[debug]..Evaluating String:
2024-03-05T06:14:00.1746017Z ##[debug]..=> 'CLOUDFLARE_API_TOKEN'
2024-03-05T06:14:00.1746531Z ##[debug]=> '***'
2024-03-05T06:14:00.1746998Z ##[debug]Result: '***'
2024-03-05T06:14:00.1747501Z ##[debug]Evaluating: vars.CLOUDFLARE_ACCOUNT_ID
2024-03-05T06:14:00.1747888Z ##[debug]Evaluating Index:
2024-03-05T06:14:00.1748174Z ##[debug]..Evaluating vars:
2024-03-05T06:14:00.1748462Z ##[debug]..=> Object
2024-03-05T06:14:00.1748728Z ##[debug]..Evaluating String:
2024-03-05T06:14:00.1749037Z ##[debug]..=> 'CLOUDFLARE_ACCOUNT_ID'
2024-03-05T06:14:00.1749415Z ##[debug]=> 'ec7fe33428e9cfe36fcd26a955f30a1c'
2024-03-05T06:14:00.1749903Z ##[debug]Result: 'ec7fe33428e9cfe36fcd26a955f30a1c'
2024-03-05T06:14:00.1750458Z ##[debug]Evaluating: vars.CLOUDFLARE_PROJECT_NAME
2024-03-05T06:14:00.1750848Z ##[debug]Evaluating Index:
2024-03-05T06:14:00.1751133Z ##[debug]..Evaluating vars:
2024-03-05T06:14:00.1751634Z ##[debug]..=> Object
2024-03-05T06:14:00.1751899Z ##[debug]..Evaluating String:
2024-03-05T06:14:00.1752210Z ##[debug]..=> 'CLOUDFLARE_PROJECT_NAME'
2024-03-05T06:14:00.1752567Z ##[debug]=> 'sandbox-actions'
2024-03-05T06:14:00.1752914Z ##[debug]Result: 'sandbox-actions'
2024-03-05T06:14:00.1753696Z ##[debug]Evaluating: (inputs.build-artifact-download-path || 'directory')
2024-03-05T06:14:00.1754223Z ##[debug]Evaluating Or:
2024-03-05T06:14:00.1754500Z ##[debug]..Evaluating Index:
2024-03-05T06:14:00.1754793Z ##[debug]....Evaluating inputs:
2024-03-05T06:14:00.1755093Z ##[debug]....=> Object
2024-03-05T06:14:00.1755378Z ##[debug]....Evaluating String:
2024-03-05T06:14:00.1755728Z ##[debug]....=> 'build-artifact-download-path'
2024-03-05T06:14:00.1756090Z ##[debug]..=> null
2024-03-05T06:14:00.1756343Z ##[debug]..Evaluating String:
2024-03-05T06:14:00.1756656Z ##[debug]..=> 'directory'
2024-03-05T06:14:00.1756937Z ##[debug]=> 'directory'
2024-03-05T06:14:00.1757282Z ##[debug]Expanded: (null || 'directory')
2024-03-05T06:14:00.1757650Z ##[debug]Result: 'directory'
2024-03-05T06:14:00.1758132Z ##[debug]Evaluating: secrets.GITHUB_TOKEN
2024-03-05T06:14:00.1758497Z ##[debug]Evaluating Index:
2024-03-05T06:14:00.1758791Z ##[debug]..Evaluating secrets:
2024-03-05T06:14:00.1759088Z ##[debug]..=> Object
2024-03-05T06:14:00.1759348Z ##[debug]..Evaluating String:
2024-03-05T06:14:00.1759638Z ##[debug]..=> 'GITHUB_TOKEN'
2024-03-05T06:14:00.1760129Z ##[debug]=> '***'
2024-03-05T06:14:00.1760671Z ##[debug]Result: '***'
2024-03-05T06:14:00.1761336Z ##[debug]Evaluating: (inputs.environment || 'preview')
2024-03-05T06:14:00.1761751Z ##[debug]Evaluating Or:
2024-03-05T06:14:00.1762029Z ##[debug]..Evaluating Index:
2024-03-05T06:14:00.1762322Z ##[debug]....Evaluating inputs:
2024-03-05T06:14:00.1762624Z ##[debug]....=> Object
2024-03-05T06:14:00.1762898Z ##[debug]....Evaluating String:
2024-03-05T06:14:00.1763201Z ##[debug]....=> 'environment'
2024-03-05T06:14:00.1763489Z ##[debug]..=> null
2024-03-05T06:14:00.1763750Z ##[debug]..Evaluating String:
2024-03-05T06:14:00.1764040Z ##[debug]..=> 'preview'
2024-03-05T06:14:00.1764307Z ##[debug]=> 'preview'
2024-03-05T06:14:00.1764636Z ##[debug]Expanded: (null || 'preview')
2024-03-05T06:14:00.1764982Z ##[debug]Result: 'preview'
2024-03-05T06:14:00.1765617Z ##[debug]Loading env
2024-03-05T06:14:00.1798223Z ##[group]Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566
2024-03-05T06:14:00.1799125Z with:
2024-03-05T06:14:00.1799735Z   cloudflare-api-token: ***
2024-03-05T06:14:00.1800304Z   cloudflare-account-id: ec7fe33428e9cfe36fcd26a955f30a1c
2024-03-05T06:14:00.1800958Z   cloudflare-project-name: sandbox-actions
2024-03-05T06:14:00.1801462Z   directory: directory
2024-03-05T06:14:00.1802055Z   github-token: ***
2024-03-05T06:14:00.1802452Z   github-environment: preview
2024-03-05T06:14:00.1802903Z env:
2024-03-05T06:14:00.1803448Z   CLOUDFLARE_API_TOKEN: ***
2024-03-05T06:14:00.1803891Z   CLOUDFLARE_ACCOUNT_ID: ec7fe33428e9cfe36fcd26a955f30a1c
2024-03-05T06:14:00.1804322Z   CLOUDFLARE_PROJECT_NAME: sandbox-actions
2024-03-05T06:14:00.1804653Z ##[endgroup]
2024-03-05T06:14:00.3071905Z ##[debug]eventName: pull_request
2024-03-05T06:14:00.3178175Z ##[debug]payload: {"action":"closed","number":20,"pull_request":{"_links":{"comments":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20/comments"},"commits":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/commits"},"html":{"href":"https://github.com/chalkygames123/sandbox-actions/pull/20"},"issue":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20"},"review_comment":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/comments{/number}"},"review_comments":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/comments"},"self":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20"},"statuses":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/f10d66f59468ab4928da412a3db44ee04239713e"}},"active_lock_reason":null,"additions":1,"assignee":null,"assignees":[],"author_association":"OWNER","auto_merge":null,"base":{"label":"chalkygames123:main","ref":"main","repo":{"allow_auto_merge":true,"allow_forking":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_squash_merge":true,"allow_update_branch":true,"archive_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/assignees{/user}","blobs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/blobs{/sha}","branches_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/branches{/branch}","clone_url":"https://github.com/chalkygames123/sandbox-actions.git","collaborators_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/comments{/number}","commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/commits{/sha}","compare_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/compare/{base}...{head}","contents_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contents/{+path}","contributors_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contributors","created_at":"2024-02-07T05:38:09Z","default_branch":"main","delete_branch_on_merge":true,"deployments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/deployments","description":null,"disabled":false,"downloads_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/downloads","events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/forks","full_name":"chalkygames123/sandbox-actions","git_commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/tags{/sha}","git_url":"git://github.com/chalkygames123/sandbox-actions.git","has_discussions":false,"has_downloads":true,"has_issues":false,"has_pages":false,"has_projects":false,"has_wiki":false,"homepage":null,"hooks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/hooks","html_url":"https://github.com/chalkygames123/sandbox-actions","id":753959008,"is_template":false,"issue_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/events{/number}","issues_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues{/number}","keys_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/keys{/key_id}","labels_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/labels{/name}","language":"HTML","languages_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/languages","license":null,"merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","merges_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/merges","milestones_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/milestones{/number}","mirror_url":null,"name":"sandbox-actions","node_id":"R_kgDOLPCAYA","notifications_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/notifications{?since,all,participating}","open_issues":0,"open_issues_count":0,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"},"private":false,"pulls_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls{/number}","pushed_at":"2024-03-05T05:53:17Z","releases_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/releases{/id}","size":131,"squash_merge_commit_message":"BLANK","squash_merge_commit_title":"PR_TITLE","ssh_url":"git@github.com:chalkygames123/sandbox-actions.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/stargazers","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/{sha}","subscribers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscribers","subscription_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscription","svn_url":"https://github.com/chalkygames123/sandbox-actions","tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/tags","teams_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/teams","topics":[],"trees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/trees{/sha}","updated_at":"2024-02-13T05:42:19Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions","use_squash_pr_title_as_default":true,"visibility":"public","watchers":0,"watchers_count":0,"web_commit_signoff_required":false},"sha":"690bdd24ccc1212f78d348512b74ae22dca30cd7","user":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}},"body":null,"changed_files":1,"closed_at":"2024-03-05T06:13:48Z","comments":1,"comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20/comments","commits":2,"commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/commits","created_at":"2024-03-05T05:52:34Z","deletions":1,"diff_url":"https://github.com/chalkygames123/sandbox-actions/pull/20.diff","draft":false,"head":{"label":"chalkygames123:patch-1","ref":"patch-1","repo":{"allow_auto_merge":true,"allow_forking":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_squash_merge":true,"allow_update_branch":true,"archive_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/assignees{/user}","blobs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/blobs{/sha}","branches_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/branches{/branch}","clone_url":"https://github.com/chalkygames123/sandbox-actions.git","collaborators_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/comments{/number}","commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/commits{/sha}","compare_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/compare/{base}...{head}","contents_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contents/{+path}","contributors_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contributors","created_at":"2024-02-07T05:38:09Z","default_branch":"main","delete_branch_on_merge":true,"deployments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/deployments","description":null,"disabled":false,"downloads_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/downloads","events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/forks","full_name":"chalkygames123/sandbox-actions","git_commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/tags{/sha}","git_url":"git://github.com/chalkygames123/sandbox-actions.git","has_discussions":false,"has_downloads":true,"has_issues":false,"has_pages":false,"has_projects":false,"has_wiki":false,"homepage":null,"hooks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/hooks","html_url":"https://github.com/chalkygames123/sandbox-actions","id":753959008,"is_template":false,"issue_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/events{/number}","issues_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues{/number}","keys_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/keys{/key_id}","labels_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/labels{/name}","language":"HTML","languages_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/languages","license":null,"merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","merges_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/merges","milestones_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/milestones{/number}","mirror_url":null,"name":"sandbox-actions","node_id":"R_kgDOLPCAYA","notifications_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/notifications{?since,all,participating}","open_issues":0,"open_issues_count":0,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"},"private":false,"pulls_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls{/number}","pushed_at":"2024-03-05T05:53:17Z","releases_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/releases{/id}","size":131,"squash_merge_commit_message":"BLANK","squash_merge_commit_title":"PR_TITLE","ssh_url":"git@github.com:chalkygames123/sandbox-actions.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/stargazers","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/{sha}","subscribers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscribers","subscription_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscription","svn_url":"https://github.com/chalkygames123/sandbox-actions","tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/tags","teams_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/teams","topics":[],"trees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/trees{/sha}","updated_at":"2024-02-13T05:42:19Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions","use_squash_pr_title_as_default":true,"visibility":"public","watchers":0,"watchers_count":0,"web_commit_signoff_required":false},"sha":"f10d66f59468ab4928da412a3db44ee04239713e","user":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}},"html_url":"https://github.com/chalkygames123/sandbox-actions/pull/20","id":1756086636,"issue_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20","labels":[],"locked":false,"maintainer_can_modify":false,"merge_commit_sha":"6105af85b089a6ac003df1f3aeaed4ceb39395df","mergeable":true,"mergeable_state":"clean","merged":false,"merged_at":null,"merged_by":null,"milestone":null,"node_id":"PR_kwDOLPCAYM5oq8Fs","number":20,"patch_url":"https://github.com/chalkygames123/sandbox-actions/pull/20.patch","rebaseable":false,"requested_reviewers":[],"requested_teams":[],"review_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/comments{/number}","review_comments":0,"review_comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/comments","state":"closed","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/f10d66f59468ab4928da412a3db44ee04239713e","title":" Update index.html","updated_at":"2024-03-05T06:13:48Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20","user":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}},"repository":{"allow_forking":true,"archive_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/assignees{/user}","blobs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/blobs{/sha}","branches_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/branches{/branch}","clone_url":"https://github.com/chalkygames123/sandbox-actions.git","collaborators_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/comments{/number}","commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/commits{/sha}","compare_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/compare/{base}...{head}","contents_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contents/{+path}","contributors_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contributors","created_at":"2024-02-07T05:38:09Z","default_branch":"main","deployments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/deployments","description":null,"disabled":false,"downloads_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/downloads","events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/forks","full_name":"chalkygames123/sandbox-actions","git_commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/tags{/sha}","git_url":"git://github.com/chalkygames123/sandbox-actions.git","has_discussions":false,"has_downloads":true,"has_issues":false,"has_pages":false,"has_projects":false,"has_wiki":false,"homepage":null,"hooks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/hooks","html_url":"https://github.com/chalkygames123/sandbox-actions","id":753959008,"is_template":false,"issue_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/events{/number}","issues_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues{/number}","keys_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/keys{/key_id}","labels_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/labels{/name}","language":"HTML","languages_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/languages","license":null,"merges_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/merges","milestones_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/milestones{/number}","mirror_url":null,"name":"sandbox-actions","node_id":"R_kgDOLPCAYA","notifications_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/notifications{?since,all,participating}","open_issues":0,"open_issues_count":0,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"},"private":false,"pulls_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls{/number}","pushed_at":"2024-03-05T05:53:17Z","releases_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/releases{/id}","size":131,"ssh_url":"git@github.com:chalkygames123/sandbox-actions.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/stargazers","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/{sha}","subscribers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscribers","subscription_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscription","svn_url":"https://github.com/chalkygames123/sandbox-actions","tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/tags","teams_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/teams","topics":[],"trees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/trees{/sha}","updated_at":"2024-02-13T05:42:19Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions","visibility":"public","watchers":0,"watchers_count":0,"web_commit_signoff_required":false},"sender":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}}
2024-03-05T06:14:00.3277446Z ##[debug]context: {"event":"will debug itself as output is large","repo":{"owner":"chalkygames123","repo":"sandbox-actions","node_id":"R_kgDOLPCAYA"},"branch":"patch-1","sha":"6105af85b089a6ac003df1f3aeaed4ceb39395df","graphqlEndpoint":"https://api.github.com/graphql","ref":"patch-1"}
2024-03-05T06:14:01.7544022Z Cloudflare Deployment Deleted: 3f0999c2-9a9b-445c-896f-a4b284233d7a
2024-03-05T06:14:01.9392259Z ##[warning]Error updating GitHub deployment status: [{"type":"FORBIDDEN","path":["createDeploymentStatus"],"extensions":{"saml_failure":false},"locations":[{"line":3,"column":3}],"message":"Resource not accessible by integration"}]
2024-03-05T06:14:01.9422339Z ##[debug]Node Action run completed with exit code 0
2024-03-05T06:14:01.9426280Z ##[debug]Finishing: Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566
2024-03-05T06:14:01.9573968Z ##[debug]Starting: Complete job
2024-03-05T06:14:01.9576091Z Uploading runner diagnostic logs
2024-03-05T06:14:01.9626448Z ##[debug]Starting diagnostic file upload.
2024-03-05T06:14:01.9626886Z ##[debug]Setting up diagnostic log folders.
2024-03-05T06:14:01.9629268Z ##[debug]Creating diagnostic log files folder.
2024-03-05T06:14:01.9646242Z ##[debug]Copying 1 worker diagnostic logs.
2024-03-05T06:14:01.9662979Z ##[debug]Copying 1 runner diagnostic logs.
2024-03-05T06:14:01.9664751Z ##[debug]Zipping diagnostic files.
2024-03-05T06:14:01.9716922Z ##[debug]Uploading diagnostic metadata file.
2024-03-05T06:14:01.9740397Z ##[debug]Diagnostic file upload complete.
2024-03-05T06:14:01.9741467Z Completed runner diagnostic log upload
2024-03-05T06:14:01.9742105Z Cleaning up orphan processes
2024-03-05T06:14:02.0185224Z ##[debug]Finishing: Complete job
2024-03-05T06:14:02.0306955Z ##[debug]Finishing: Delete deployments

andykenward commented 6 months ago

Strange it isn't working for public repos. Could it be that the deployment was created in private and that's why?

andykenward commented 6 months ago

I realized I didn't test the deleting deployments, and it turns out this action always fails to inactivate GitHub deployments for the preview environment either in a private or public repo with the following error:

Error updating GitHub deployment status: [{"type":"FORBIDDEN","path":["createDeploymentStatus"],"extensions":{"saml_failure":false},"locations":[{"line":3,"column":3}],"message":"Resource not accessible by integration"}]

I have taken a look into the GitHub GraphQL API docs but couldn't find any information about the required permissions. Also, setting permissions: write-all had no effect 🤷

My last attempt: https://github.com/chalkygames123/sandbox-actions/actions/runs/8151873285/job/22280423259?pr=20

The log, just in case:

0_Delete deployments.txt ``` 2024-03-05T06:13:57.7191694Z ##[debug]Starting: Delete deployments 2024-03-05T06:13:57.7216051Z ##[debug]Cleaning runner temp folder: /home/runner/work/_temp 2024-03-05T06:13:57.7460867Z ##[debug]Starting: Set up job 2024-03-05T06:13:57.7461598Z Current runner version: '2.314.1' 2024-03-05T06:13:57.7483896Z ##[group]Operating System 2024-03-05T06:13:57.7484506Z Ubuntu 2024-03-05T06:13:57.7485009Z 22.04.4 2024-03-05T06:13:57.7485323Z LTS 2024-03-05T06:13:57.7485671Z ##[endgroup] 2024-03-05T06:13:57.7486166Z ##[group]Runner Image 2024-03-05T06:13:57.7486631Z Image: ubuntu-22.04 2024-03-05T06:13:57.7487016Z Version: 20240225.1.0 2024-03-05T06:13:57.7488215Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240225.1/images/ubuntu/Ubuntu2204-Readme.md 2024-03-05T06:13:57.7489785Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240225.1 2024-03-05T06:13:57.7490728Z ##[endgroup] 2024-03-05T06:13:57.7491197Z ##[group]Runner Image Provisioner 2024-03-05T06:13:57.7491775Z 2.0.347.1 2024-03-05T06:13:57.7492379Z ##[endgroup] 2024-03-05T06:13:57.7493443Z ##[group]GITHUB_TOKEN Permissions 2024-03-05T06:13:57.7495257Z Contents: read 2024-03-05T06:13:57.7495712Z Metadata: read 2024-03-05T06:13:57.7496163Z Packages: read 2024-03-05T06:13:57.7496642Z ##[endgroup] 2024-03-05T06:13:57.7499777Z Secret source: Actions 2024-03-05T06:13:57.7500521Z ##[debug]Primary repository: chalkygames123/sandbox-actions 2024-03-05T06:13:57.7501393Z Prepare workflow directory 2024-03-05T06:13:57.7569636Z ##[debug]Creating pipeline directory: '/home/runner/work/sandbox-actions' 2024-03-05T06:13:57.7573541Z ##[debug]Creating workspace directory: '/home/runner/work/sandbox-actions/sandbox-actions' 2024-03-05T06:13:57.7575331Z ##[debug]Update context data 2024-03-05T06:13:57.7579175Z ##[debug]Evaluating job-level environment variables 2024-03-05T06:13:57.8280183Z ##[debug]Evaluating: secrets.CLOUDFLARE_API_TOKEN 2024-03-05T06:13:57.8285776Z ##[debug]Evaluating Index: 2024-03-05T06:13:57.8287896Z ##[debug]..Evaluating secrets: 2024-03-05T06:13:57.8302864Z ##[debug]..=> Object 2024-03-05T06:13:57.8317876Z ##[debug]..Evaluating String: 2024-03-05T06:13:57.8318947Z ##[debug]..=> 'CLOUDFLARE_API_TOKEN' 2024-03-05T06:13:57.8323499Z ##[debug]=> '***' 2024-03-05T06:13:57.8326610Z ##[debug]Result: '***' 2024-03-05T06:13:57.8347464Z ##[debug]Evaluating: vars.CLOUDFLARE_ACCOUNT_ID 2024-03-05T06:13:57.8348135Z ##[debug]Evaluating Index: 2024-03-05T06:13:57.8348662Z ##[debug]..Evaluating vars: 2024-03-05T06:13:57.8349345Z ##[debug]..=> Object 2024-03-05T06:13:57.8349841Z ##[debug]..Evaluating String: 2024-03-05T06:13:57.8350396Z ##[debug]..=> 'CLOUDFLARE_ACCOUNT_ID' 2024-03-05T06:13:57.8351200Z ##[debug]=> 'ec7fe33428e9cfe36fcd26a955f30a1c' 2024-03-05T06:13:57.8351922Z ##[debug]Result: 'ec7fe33428e9cfe36fcd26a955f30a1c' 2024-03-05T06:13:57.8353017Z ##[debug]Evaluating: vars.CLOUDFLARE_PROJECT_NAME 2024-03-05T06:13:57.8353800Z ##[debug]Evaluating Index: 2024-03-05T06:13:57.8354271Z ##[debug]..Evaluating vars: 2024-03-05T06:13:57.8354768Z ##[debug]..=> Object 2024-03-05T06:13:57.8355333Z ##[debug]..Evaluating String: 2024-03-05T06:13:57.8355893Z ##[debug]..=> 'CLOUDFLARE_PROJECT_NAME' 2024-03-05T06:13:57.8356568Z ##[debug]=> 'sandbox-actions' 2024-03-05T06:13:57.8357075Z ##[debug]Result: 'sandbox-actions' 2024-03-05T06:13:57.8372607Z ##[debug]Evaluating job container 2024-03-05T06:13:57.8375499Z ##[debug]Evaluating job service containers 2024-03-05T06:13:57.8377845Z ##[debug]Evaluating job defaults 2024-03-05T06:13:57.8503683Z Prepare all required actions 2024-03-05T06:13:57.8661522Z Getting action download info 2024-03-05T06:13:58.0641285Z Download action repository 'actions/download-artifact@v4' (SHA:c850b930e6ba138125429b7e5c93fc707a7f8427) 2024-03-05T06:13:58.8896300Z ##[debug]Download 'https://api.github.com/repos/actions/download-artifact/tarball/c850b930e6ba138125429b7e5c93fc707a7f8427' to '/home/runner/work/_actions/_temp_e3a8f40f-3291-4b37-8a7b-45db1e3e6804/b672924e-6cbd-49bd-9b8f-2d1f91661364.tar.gz' 2024-03-05T06:13:58.9915632Z ##[debug]Unwrap 'actions-download-artifact-c850b93' to '/home/runner/work/_actions/actions/download-artifact/v4' 2024-03-05T06:13:59.0177383Z ##[debug]Archive '/home/runner/work/_actions/_temp_e3a8f40f-3291-4b37-8a7b-45db1e3e6804/b672924e-6cbd-49bd-9b8f-2d1f91661364.tar.gz' has been unzipped into '/home/runner/work/_actions/actions/download-artifact/v4'. 2024-03-05T06:13:59.0319485Z Download action repository 'unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566' (SHA:8c09c46bd39321b4aa3784852491d9e4f09e1566) 2024-03-05T06:13:59.8930820Z ##[debug]Download 'https://api.github.com/repos/unlike-ltd/github-actions-cloudflare-pages/tarball/8c09c46bd39321b4aa3784852491d9e4f09e1566' to '/home/runner/work/_actions/_temp_47a2191a-159b-4dc1-a2f7-df10df4fdb51/862f001f-86e6-4f48-9239-58682da137fd.tar.gz' 2024-03-05T06:13:59.9236267Z ##[debug]Unwrap 'unlike-ltd-github-actions-cloudflare-pages-8c09c46' to '/home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566' 2024-03-05T06:13:59.9466524Z ##[debug]Archive '/home/runner/work/_actions/_temp_47a2191a-159b-4dc1-a2f7-df10df4fdb51/862f001f-86e6-4f48-9239-58682da137fd.tar.gz' has been unzipped into '/home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566'. 2024-03-05T06:13:59.9559390Z ##[debug]action.yml for action: '/home/runner/work/_actions/actions/download-artifact/v4/action.yml'. 2024-03-05T06:14:00.0161019Z ##[debug]action.yml for action: '/home/runner/work/_actions/unlike-ltd/github-actions-cloudflare-pages/8c09c46bd39321b4aa3784852491d9e4f09e1566/action.yml'. 2024-03-05T06:14:00.0242379Z ##[debug]Set step '__run' display name to: 'Check if required variables are defined' 2024-03-05T06:14:00.0244257Z ##[debug]Set step '__actions_download-artifact' display name to: 'Run actions/download-artifact@v4' 2024-03-05T06:14:00.0246255Z ##[debug]Set step '__unlike-ltd_github-actions-cloudflare-pages' display name to: 'Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566' 2024-03-05T06:14:00.0247560Z Complete job name: Delete deployments 2024-03-05T06:14:00.0261054Z ##[debug]Collect running processes for tracking orphan processes. 2024-03-05T06:14:00.0485914Z ##[debug]Finishing: Set up job 2024-03-05T06:14:00.0683009Z ##[debug]Evaluating condition for step: 'Check if required variables are defined' 2024-03-05T06:14:00.0713204Z ##[debug]Evaluating: success() 2024-03-05T06:14:00.0714330Z ##[debug]Evaluating success: 2024-03-05T06:14:00.0724573Z ##[debug]=> true 2024-03-05T06:14:00.0726853Z ##[debug]Result: true 2024-03-05T06:14:00.0743052Z ##[debug]Starting: Check if required variables are defined 2024-03-05T06:14:00.0910001Z ##[debug]Loading inputs 2024-03-05T06:14:00.0917982Z ##[debug]Loading env 2024-03-05T06:14:00.1005956Z ##[group]Run echo "CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN:?secret is not defined}" 2024-03-05T06:14:00.1006784Z �[36;1mecho "CLOUDFLARE_API_TOKEN: ${CLOUDFLARE_API_TOKEN:?secret is not defined}"�[0m 2024-03-05T06:14:00.1007605Z �[36;1mecho "CLOUDFLARE_ACCOUNT_ID: ${CLOUDFLARE_ACCOUNT_ID:?configuration variable is not defined}"�[0m 2024-03-05T06:14:00.1008428Z �[36;1mecho "CLOUDFLARE_PROJECT_NAME: ${CLOUDFLARE_PROJECT_NAME:?configuration variable is not defined}"�[0m 2024-03-05T06:14:00.1051676Z shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0} 2024-03-05T06:14:00.1052121Z env: 2024-03-05T06:14:00.1052665Z CLOUDFLARE_API_TOKEN: *** 2024-03-05T06:14:00.1053084Z CLOUDFLARE_ACCOUNT_ID: ec7fe33428e9cfe36fcd26a955f30a1c 2024-03-05T06:14:00.1053511Z CLOUDFLARE_PROJECT_NAME: sandbox-actions 2024-03-05T06:14:00.1053846Z ##[endgroup] 2024-03-05T06:14:00.1129226Z ##[debug]Overwrite 'shell' base on job defaults. 2024-03-05T06:14:00.1184277Z ##[debug]/usr/bin/bash --noprofile --norc -e -o pipefail /home/runner/work/_temp/d4342563-77ad-4ccc-88dd-622b79ef31f4.sh 2024-03-05T06:14:00.1518427Z CLOUDFLARE_API_TOKEN: *** 2024-03-05T06:14:00.1518877Z CLOUDFLARE_ACCOUNT_ID: ec7fe33428e9cfe36fcd26a955f30a1c 2024-03-05T06:14:00.1519807Z CLOUDFLARE_PROJECT_NAME: sandbox-actions 2024-03-05T06:14:00.1645179Z ##[debug]Finishing: Check if required variables are defined 2024-03-05T06:14:00.1655883Z ##[debug]Evaluating condition for step: 'Run actions/download-artifact@v4' 2024-03-05T06:14:00.1679095Z ##[debug]Evaluating: (success() && ((github.event_name != 'pull_request') || (github.event.action != 'closed'))) 2024-03-05T06:14:00.1679895Z ##[debug]Evaluating And: 2024-03-05T06:14:00.1683909Z ##[debug]..Evaluating success: 2024-03-05T06:14:00.1684514Z ##[debug]..=> true 2024-03-05T06:14:00.1684916Z ##[debug]..Evaluating Or: 2024-03-05T06:14:00.1688376Z ##[debug]....Evaluating NotEqual: 2024-03-05T06:14:00.1689918Z ##[debug]......Evaluating Index: 2024-03-05T06:14:00.1690348Z ##[debug]........Evaluating github: 2024-03-05T06:14:00.1690789Z ##[debug]........=> Object 2024-03-05T06:14:00.1691192Z ##[debug]........Evaluating String: 2024-03-05T06:14:00.1691608Z ##[debug]........=> 'event_name' 2024-03-05T06:14:00.1692106Z ##[debug]......=> 'pull_request' 2024-03-05T06:14:00.1692537Z ##[debug]......Evaluating String: 2024-03-05T06:14:00.1692929Z ##[debug]......=> 'pull_request' 2024-03-05T06:14:00.1696463Z ##[debug]....=> false 2024-03-05T06:14:00.1697058Z ##[debug]....Evaluating NotEqual: 2024-03-05T06:14:00.1697473Z ##[debug]......Evaluating Index: 2024-03-05T06:14:00.1697873Z ##[debug]........Evaluating Index: 2024-03-05T06:14:00.1698286Z ##[debug]..........Evaluating github: 2024-03-05T06:14:00.1698707Z ##[debug]..........=> Object 2024-03-05T06:14:00.1699123Z ##[debug]..........Evaluating String: 2024-03-05T06:14:00.1699527Z ##[debug]..........=> 'event' 2024-03-05T06:14:00.1700018Z ##[debug]........=> Object 2024-03-05T06:14:00.1700405Z ##[debug]........Evaluating String: 2024-03-05T06:14:00.1700792Z ##[debug]........=> 'action' 2024-03-05T06:14:00.1701183Z ##[debug]......=> 'closed' 2024-03-05T06:14:00.1701552Z ##[debug]......Evaluating String: 2024-03-05T06:14:00.1701934Z ##[debug]......=> 'closed' 2024-03-05T06:14:00.1702305Z ##[debug]....=> false 2024-03-05T06:14:00.1703074Z ##[debug]..=> false 2024-03-05T06:14:00.1703680Z ##[debug]=> false 2024-03-05T06:14:00.1708821Z ##[debug]Expanded: (true && (('pull_request' != 'pull_request') || ('closed' != 'closed'))) 2024-03-05T06:14:00.1709520Z ##[debug]Result: false 2024-03-05T06:14:00.1715609Z ##[debug]Evaluating condition for step: 'Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566' 2024-03-05T06:14:00.1717083Z ##[debug]Evaluating: success() 2024-03-05T06:14:00.1717496Z ##[debug]Evaluating success: 2024-03-05T06:14:00.1717923Z ##[debug]=> true 2024-03-05T06:14:00.1718339Z ##[debug]Result: true 2024-03-05T06:14:00.1719168Z ##[debug]Starting: Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566 2024-03-05T06:14:00.1743399Z ##[debug]Loading inputs 2024-03-05T06:14:00.1744413Z ##[debug]Evaluating: secrets.CLOUDFLARE_API_TOKEN 2024-03-05T06:14:00.1744823Z ##[debug]Evaluating Index: 2024-03-05T06:14:00.1745127Z ##[debug]..Evaluating secrets: 2024-03-05T06:14:00.1745434Z ##[debug]..=> Object 2024-03-05T06:14:00.1745708Z ##[debug]..Evaluating String: 2024-03-05T06:14:00.1746017Z ##[debug]..=> 'CLOUDFLARE_API_TOKEN' 2024-03-05T06:14:00.1746531Z ##[debug]=> '***' 2024-03-05T06:14:00.1746998Z ##[debug]Result: '***' 2024-03-05T06:14:00.1747501Z ##[debug]Evaluating: vars.CLOUDFLARE_ACCOUNT_ID 2024-03-05T06:14:00.1747888Z ##[debug]Evaluating Index: 2024-03-05T06:14:00.1748174Z ##[debug]..Evaluating vars: 2024-03-05T06:14:00.1748462Z ##[debug]..=> Object 2024-03-05T06:14:00.1748728Z ##[debug]..Evaluating String: 2024-03-05T06:14:00.1749037Z ##[debug]..=> 'CLOUDFLARE_ACCOUNT_ID' 2024-03-05T06:14:00.1749415Z ##[debug]=> 'ec7fe33428e9cfe36fcd26a955f30a1c' 2024-03-05T06:14:00.1749903Z ##[debug]Result: 'ec7fe33428e9cfe36fcd26a955f30a1c' 2024-03-05T06:14:00.1750458Z ##[debug]Evaluating: vars.CLOUDFLARE_PROJECT_NAME 2024-03-05T06:14:00.1750848Z ##[debug]Evaluating Index: 2024-03-05T06:14:00.1751133Z ##[debug]..Evaluating vars: 2024-03-05T06:14:00.1751634Z ##[debug]..=> Object 2024-03-05T06:14:00.1751899Z ##[debug]..Evaluating String: 2024-03-05T06:14:00.1752210Z ##[debug]..=> 'CLOUDFLARE_PROJECT_NAME' 2024-03-05T06:14:00.1752567Z ##[debug]=> 'sandbox-actions' 2024-03-05T06:14:00.1752914Z ##[debug]Result: 'sandbox-actions' 2024-03-05T06:14:00.1753696Z ##[debug]Evaluating: (inputs.build-artifact-download-path || 'directory') 2024-03-05T06:14:00.1754223Z ##[debug]Evaluating Or: 2024-03-05T06:14:00.1754500Z ##[debug]..Evaluating Index: 2024-03-05T06:14:00.1754793Z ##[debug]....Evaluating inputs: 2024-03-05T06:14:00.1755093Z ##[debug]....=> Object 2024-03-05T06:14:00.1755378Z ##[debug]....Evaluating String: 2024-03-05T06:14:00.1755728Z ##[debug]....=> 'build-artifact-download-path' 2024-03-05T06:14:00.1756090Z ##[debug]..=> null 2024-03-05T06:14:00.1756343Z ##[debug]..Evaluating String: 2024-03-05T06:14:00.1756656Z ##[debug]..=> 'directory' 2024-03-05T06:14:00.1756937Z ##[debug]=> 'directory' 2024-03-05T06:14:00.1757282Z ##[debug]Expanded: (null || 'directory') 2024-03-05T06:14:00.1757650Z ##[debug]Result: 'directory' 2024-03-05T06:14:00.1758132Z ##[debug]Evaluating: secrets.GITHUB_TOKEN 2024-03-05T06:14:00.1758497Z ##[debug]Evaluating Index: 2024-03-05T06:14:00.1758791Z ##[debug]..Evaluating secrets: 2024-03-05T06:14:00.1759088Z ##[debug]..=> Object 2024-03-05T06:14:00.1759348Z ##[debug]..Evaluating String: 2024-03-05T06:14:00.1759638Z ##[debug]..=> 'GITHUB_TOKEN' 2024-03-05T06:14:00.1760129Z ##[debug]=> '***' 2024-03-05T06:14:00.1760671Z ##[debug]Result: '***' 2024-03-05T06:14:00.1761336Z ##[debug]Evaluating: (inputs.environment || 'preview') 2024-03-05T06:14:00.1761751Z ##[debug]Evaluating Or: 2024-03-05T06:14:00.1762029Z ##[debug]..Evaluating Index: 2024-03-05T06:14:00.1762322Z ##[debug]....Evaluating inputs: 2024-03-05T06:14:00.1762624Z ##[debug]....=> Object 2024-03-05T06:14:00.1762898Z ##[debug]....Evaluating String: 2024-03-05T06:14:00.1763201Z ##[debug]....=> 'environment' 2024-03-05T06:14:00.1763489Z ##[debug]..=> null 2024-03-05T06:14:00.1763750Z ##[debug]..Evaluating String: 2024-03-05T06:14:00.1764040Z ##[debug]..=> 'preview' 2024-03-05T06:14:00.1764307Z ##[debug]=> 'preview' 2024-03-05T06:14:00.1764636Z ##[debug]Expanded: (null || 'preview') 2024-03-05T06:14:00.1764982Z ##[debug]Result: 'preview' 2024-03-05T06:14:00.1765617Z ##[debug]Loading env 2024-03-05T06:14:00.1798223Z ##[group]Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566 2024-03-05T06:14:00.1799125Z with: 2024-03-05T06:14:00.1799735Z cloudflare-api-token: *** 2024-03-05T06:14:00.1800304Z cloudflare-account-id: ec7fe33428e9cfe36fcd26a955f30a1c 2024-03-05T06:14:00.1800958Z cloudflare-project-name: sandbox-actions 2024-03-05T06:14:00.1801462Z directory: directory 2024-03-05T06:14:00.1802055Z github-token: *** 2024-03-05T06:14:00.1802452Z github-environment: preview 2024-03-05T06:14:00.1802903Z env: 2024-03-05T06:14:00.1803448Z CLOUDFLARE_API_TOKEN: *** 2024-03-05T06:14:00.1803891Z CLOUDFLARE_ACCOUNT_ID: ec7fe33428e9cfe36fcd26a955f30a1c 2024-03-05T06:14:00.1804322Z CLOUDFLARE_PROJECT_NAME: sandbox-actions 2024-03-05T06:14:00.1804653Z ##[endgroup] 2024-03-05T06:14:00.3071905Z ##[debug]eventName: pull_request 2024-03-05T06:14:00.3178175Z ##[debug]payload: {"action":"closed","number":20,"pull_request":{"_links":{"comments":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20/comments"},"commits":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/commits"},"html":{"href":"https://github.com/chalkygames123/sandbox-actions/pull/20"},"issue":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20"},"review_comment":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/comments{/number}"},"review_comments":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/comments"},"self":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20"},"statuses":{"href":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/f10d66f59468ab4928da412a3db44ee04239713e"}},"active_lock_reason":null,"additions":1,"assignee":null,"assignees":[],"author_association":"OWNER","auto_merge":null,"base":{"label":"chalkygames123:main","ref":"main","repo":{"allow_auto_merge":true,"allow_forking":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_squash_merge":true,"allow_update_branch":true,"archive_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/assignees{/user}","blobs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/blobs{/sha}","branches_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/branches{/branch}","clone_url":"https://github.com/chalkygames123/sandbox-actions.git","collaborators_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/comments{/number}","commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/commits{/sha}","compare_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/compare/{base}...{head}","contents_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contents/{+path}","contributors_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contributors","created_at":"2024-02-07T05:38:09Z","default_branch":"main","delete_branch_on_merge":true,"deployments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/deployments","description":null,"disabled":false,"downloads_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/downloads","events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/forks","full_name":"chalkygames123/sandbox-actions","git_commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/tags{/sha}","git_url":"git://github.com/chalkygames123/sandbox-actions.git","has_discussions":false,"has_downloads":true,"has_issues":false,"has_pages":false,"has_projects":false,"has_wiki":false,"homepage":null,"hooks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/hooks","html_url":"https://github.com/chalkygames123/sandbox-actions","id":753959008,"is_template":false,"issue_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/events{/number}","issues_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues{/number}","keys_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/keys{/key_id}","labels_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/labels{/name}","language":"HTML","languages_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/languages","license":null,"merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","merges_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/merges","milestones_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/milestones{/number}","mirror_url":null,"name":"sandbox-actions","node_id":"R_kgDOLPCAYA","notifications_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/notifications{?since,all,participating}","open_issues":0,"open_issues_count":0,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"},"private":false,"pulls_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls{/number}","pushed_at":"2024-03-05T05:53:17Z","releases_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/releases{/id}","size":131,"squash_merge_commit_message":"BLANK","squash_merge_commit_title":"PR_TITLE","ssh_url":"git@github.com:chalkygames123/sandbox-actions.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/stargazers","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/{sha}","subscribers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscribers","subscription_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscription","svn_url":"https://github.com/chalkygames123/sandbox-actions","tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/tags","teams_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/teams","topics":[],"trees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/trees{/sha}","updated_at":"2024-02-13T05:42:19Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions","use_squash_pr_title_as_default":true,"visibility":"public","watchers":0,"watchers_count":0,"web_commit_signoff_required":false},"sha":"690bdd24ccc1212f78d348512b74ae22dca30cd7","user":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}},"body":null,"changed_files":1,"closed_at":"2024-03-05T06:13:48Z","comments":1,"comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20/comments","commits":2,"commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/commits","created_at":"2024-03-05T05:52:34Z","deletions":1,"diff_url":"https://github.com/chalkygames123/sandbox-actions/pull/20.diff","draft":false,"head":{"label":"chalkygames123:patch-1","ref":"patch-1","repo":{"allow_auto_merge":true,"allow_forking":true,"allow_merge_commit":false,"allow_rebase_merge":false,"allow_squash_merge":true,"allow_update_branch":true,"archive_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/assignees{/user}","blobs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/blobs{/sha}","branches_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/branches{/branch}","clone_url":"https://github.com/chalkygames123/sandbox-actions.git","collaborators_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/comments{/number}","commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/commits{/sha}","compare_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/compare/{base}...{head}","contents_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contents/{+path}","contributors_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contributors","created_at":"2024-02-07T05:38:09Z","default_branch":"main","delete_branch_on_merge":true,"deployments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/deployments","description":null,"disabled":false,"downloads_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/downloads","events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/forks","full_name":"chalkygames123/sandbox-actions","git_commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/tags{/sha}","git_url":"git://github.com/chalkygames123/sandbox-actions.git","has_discussions":false,"has_downloads":true,"has_issues":false,"has_pages":false,"has_projects":false,"has_wiki":false,"homepage":null,"hooks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/hooks","html_url":"https://github.com/chalkygames123/sandbox-actions","id":753959008,"is_template":false,"issue_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/events{/number}","issues_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues{/number}","keys_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/keys{/key_id}","labels_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/labels{/name}","language":"HTML","languages_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/languages","license":null,"merge_commit_message":"PR_TITLE","merge_commit_title":"MERGE_MESSAGE","merges_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/merges","milestones_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/milestones{/number}","mirror_url":null,"name":"sandbox-actions","node_id":"R_kgDOLPCAYA","notifications_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/notifications{?since,all,participating}","open_issues":0,"open_issues_count":0,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"},"private":false,"pulls_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls{/number}","pushed_at":"2024-03-05T05:53:17Z","releases_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/releases{/id}","size":131,"squash_merge_commit_message":"BLANK","squash_merge_commit_title":"PR_TITLE","ssh_url":"git@github.com:chalkygames123/sandbox-actions.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/stargazers","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/{sha}","subscribers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscribers","subscription_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscription","svn_url":"https://github.com/chalkygames123/sandbox-actions","tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/tags","teams_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/teams","topics":[],"trees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/trees{/sha}","updated_at":"2024-02-13T05:42:19Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions","use_squash_pr_title_as_default":true,"visibility":"public","watchers":0,"watchers_count":0,"web_commit_signoff_required":false},"sha":"f10d66f59468ab4928da412a3db44ee04239713e","user":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}},"html_url":"https://github.com/chalkygames123/sandbox-actions/pull/20","id":1756086636,"issue_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/20","labels":[],"locked":false,"maintainer_can_modify":false,"merge_commit_sha":"6105af85b089a6ac003df1f3aeaed4ceb39395df","mergeable":true,"mergeable_state":"clean","merged":false,"merged_at":null,"merged_by":null,"milestone":null,"node_id":"PR_kwDOLPCAYM5oq8Fs","number":20,"patch_url":"https://github.com/chalkygames123/sandbox-actions/pull/20.patch","rebaseable":false,"requested_reviewers":[],"requested_teams":[],"review_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/comments{/number}","review_comments":0,"review_comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20/comments","state":"closed","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/f10d66f59468ab4928da412a3db44ee04239713e","title":" Update index.html","updated_at":"2024-03-05T06:13:48Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls/20","user":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}},"repository":{"allow_forking":true,"archive_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/assignees{/user}","blobs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/blobs{/sha}","branches_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/branches{/branch}","clone_url":"https://github.com/chalkygames123/sandbox-actions.git","collaborators_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/comments{/number}","commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/commits{/sha}","compare_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/compare/{base}...{head}","contents_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contents/{+path}","contributors_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/contributors","created_at":"2024-02-07T05:38:09Z","default_branch":"main","deployments_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/deployments","description":null,"disabled":false,"downloads_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/downloads","events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/forks","full_name":"chalkygames123/sandbox-actions","git_commits_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/tags{/sha}","git_url":"git://github.com/chalkygames123/sandbox-actions.git","has_discussions":false,"has_downloads":true,"has_issues":false,"has_pages":false,"has_projects":false,"has_wiki":false,"homepage":null,"hooks_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/hooks","html_url":"https://github.com/chalkygames123/sandbox-actions","id":753959008,"is_template":false,"issue_comment_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues/events{/number}","issues_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/issues{/number}","keys_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/keys{/key_id}","labels_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/labels{/name}","language":"HTML","languages_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/languages","license":null,"merges_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/merges","milestones_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/milestones{/number}","mirror_url":null,"name":"sandbox-actions","node_id":"R_kgDOLPCAYA","notifications_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/notifications{?since,all,participating}","open_issues":0,"open_issues_count":0,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"},"private":false,"pulls_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/pulls{/number}","pushed_at":"2024-03-05T05:53:17Z","releases_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/releases{/id}","size":131,"ssh_url":"git@github.com:chalkygames123/sandbox-actions.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/stargazers","statuses_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/statuses/{sha}","subscribers_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscribers","subscription_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/subscription","svn_url":"https://github.com/chalkygames123/sandbox-actions","tags_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/tags","teams_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/teams","topics":[],"trees_url":"https://api.github.com/repos/chalkygames123/sandbox-actions/git/trees{/sha}","updated_at":"2024-02-13T05:42:19Z","url":"https://api.github.com/repos/chalkygames123/sandbox-actions","visibility":"public","watchers":0,"watchers_count":0,"web_commit_signoff_required":false},"sender":{"avatar_url":"https://avatars.githubusercontent.com/u/5608239?v=4","events_url":"https://api.github.com/users/chalkygames123/events{/privacy}","followers_url":"https://api.github.com/users/chalkygames123/followers","following_url":"https://api.github.com/users/chalkygames123/following{/other_user}","gists_url":"https://api.github.com/users/chalkygames123/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/chalkygames123","id":5608239,"login":"chalkygames123","node_id":"MDQ6VXNlcjU2MDgyMzk=","organizations_url":"https://api.github.com/users/chalkygames123/orgs","received_events_url":"https://api.github.com/users/chalkygames123/received_events","repos_url":"https://api.github.com/users/chalkygames123/repos","site_admin":false,"starred_url":"https://api.github.com/users/chalkygames123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalkygames123/subscriptions","type":"User","url":"https://api.github.com/users/chalkygames123"}} 2024-03-05T06:14:00.3277446Z ##[debug]context: {"event":"will debug itself as output is large","repo":{"owner":"chalkygames123","repo":"sandbox-actions","node_id":"R_kgDOLPCAYA"},"branch":"patch-1","sha":"6105af85b089a6ac003df1f3aeaed4ceb39395df","graphqlEndpoint":"https://api.github.com/graphql","ref":"patch-1"} 2024-03-05T06:14:01.7544022Z Cloudflare Deployment Deleted: 3f0999c2-9a9b-445c-896f-a4b284233d7a 2024-03-05T06:14:01.9392259Z ##[warning]Error updating GitHub deployment status: [{"type":"FORBIDDEN","path":["createDeploymentStatus"],"extensions":{"saml_failure":false},"locations":[{"line":3,"column":3}],"message":"Resource not accessible by integration"}] 2024-03-05T06:14:01.9422339Z ##[debug]Node Action run completed with exit code 0 2024-03-05T06:14:01.9426280Z ##[debug]Finishing: Run unlike-ltd/github-actions-cloudflare-pages@8c09c46bd39321b4aa3784852491d9e4f09e1566 2024-03-05T06:14:01.9573968Z ##[debug]Starting: Complete job 2024-03-05T06:14:01.9576091Z Uploading runner diagnostic logs 2024-03-05T06:14:01.9626448Z ##[debug]Starting diagnostic file upload. 2024-03-05T06:14:01.9626886Z ##[debug]Setting up diagnostic log folders. 2024-03-05T06:14:01.9629268Z ##[debug]Creating diagnostic log files folder. 2024-03-05T06:14:01.9646242Z ##[debug]Copying 1 worker diagnostic logs. 2024-03-05T06:14:01.9662979Z ##[debug]Copying 1 runner diagnostic logs. 2024-03-05T06:14:01.9664751Z ##[debug]Zipping diagnostic files. 2024-03-05T06:14:01.9716922Z ##[debug]Uploading diagnostic metadata file. 2024-03-05T06:14:01.9740397Z ##[debug]Diagnostic file upload complete. 2024-03-05T06:14:01.9741467Z Completed runner diagnostic log upload 2024-03-05T06:14:01.9742105Z Cleaning up orphan processes 2024-03-05T06:14:02.0185224Z ##[debug]Finishing: Complete job 2024-03-05T06:14:02.0306955Z ##[debug]Finishing: Delete deployments ```

You need to add the permissions to deploy.yaml for when it runs on a pull_request close event. Your ci-cd.yaml has them set and it must inherit those when "deploy" is run.

If you look at the log I see the GITHUB_TOKEN permissions don't have the required writes

2024-03-05T06:13:57.7493443Z ##[group]GITHUB_TOKEN Permissions
2024-03-05T06:13:57.7495257Z Contents: read
2024-03-05T06:13:57.7495712Z Metadata: read
2024-03-05T06:13:57.7496163Z Packages: read
2024-03-05T06:13:57.7496642Z ##[endgroup]

On my private repo for a deletion.

2024-03-05T13:26:10.1121188Z ##[group]GITHUB_TOKEN Permissions
2024-03-05T13:26:10.1123289Z Actions: read
2024-03-05T13:26:10.1123812Z Contents: read
2024-03-05T13:26:10.1124632Z Deployments: write
2024-03-05T13:26:10.1125249Z Metadata: read
2024-03-05T13:26:10.1125832Z PullRequests: write
2024-03-05T13:26:10.1126355Z ##[endgroup]
andykenward commented 6 months ago

Will see if it's possible to throw a meaningful error about not having the correct GITHUB_TOKEN permissions when the action starts. Perhaps with a link to docs on what ones are required and why?

chalkygames123 commented 6 months ago

Ah, I was under the impression that the called workflows implicitly "inherit" permissions from the caller workflow. Now I can confirm it works as expected. Thank you for pointing it out!

Perhaps with a link to docs on what ones are required and why?

Yeah, it would be enough as a clue for users to resolve the problem by themselves.

chalkygames123 commented 6 months ago

We also might as well always log Wrangler's output. For example, we can confirm that Pages Functions are uploaded in the output when deploying a project that uses it:

✨ Compiled Worker successfully
🌍  Uploading... (99/99)

✨ Success! Uploaded 0 files (99 already uploaded) (0.5 sec)

✨ Uploading Functions bundle
✨ Deployment complete! Take a peek over at https://xxxxxxxx.example.pages.dev