I’ve been trying to create a Gitea action using the Hacking on Gitea Actions guide. Here’s the first steps in my YML file:
on:
push
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checlout@v3
- name: Install PNPM
uses: https://github.com/pnpm/actions-setup@v2
with:
version: 8.5.1
run_install: true
- name: Build
run: "pnpm run build"
- name: Deploy
uses: https://github.com/cloudflare/pages@1
with:
apiToken: $ {{ secrets.CLOUDFLARE_API_TOKEN }}
accountID: $ {{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: website
directory: "dist"
gitHubToken: $ {{ secrets.GITHUB_TOKEN }}
Here is the Action log (with some Docker pull lines removed)
1
97a5bbde884f(version:v0.1.8) received task 1 of job 1, be triggered by event: push
2
workflow prepared
3
evaluating expression 'success()'
4
expression 'success()' evaluated to 'true'
5
🚀 Start image=catthehacker/ubuntu:runner-22.04
6
🐳 docker pull image=catthehacker/ubuntu:runner-22.04 platform= username= forcePull=false
7
🐳 docker pull catthehacker/ubuntu:runner-22.04
8
Image exists? false
9
pulling image 'docker.io/catthehacker/ubuntu:runner-22.04' ()
10
Pulling from catthehacker/ubuntu :: runner-22.04
11
345
Pull complete :: bbcaae7c39f6
346
Digest: sha256:09b04dd245a1192d85499f48009d9e8605c0a4678b1fba21d2da6d4ef840d82a ::
347
Status: Downloaded newer image for catthehacker/ubuntu:runner-22.04 ::
348
🐳 docker create image=catthehacker/ubuntu:runner-22.04 platform= entrypoint=["/bin/sleep" "10800"] cmd=[]
349
Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:catthehacker/ubuntu:runner-22.04 Volumes:map[] WorkingDir:/workspace/Southpaw1496/astro-blog Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
350
Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:bridge PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:true VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:GITEA-ACTIONS-TASK-1_WORKFLOW_JOB-Deploy-to-Cloudflare-Pages-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:GITEA-ACTIONS-TASK-1_WORKFLOW_JOB-Deploy-to-Cloudflare-Pages Target:/workspace/Southpaw1496/astro-blog ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
351
Created container name=GITEA-ACTIONS-TASK-1_WORKFLOW_JOB-Deploy-to-Cloudflare-Pages id=ca9473b0e3dd9e409ac0e6811a72b56153e80f6945dfe589336097051aaba7c3 from image catthehacker/ubuntu:runner-22.04 (platform: )
352
ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp LANG=C.UTF-8]
353
🐳 docker run image=catthehacker/ubuntu:runner-22.04 platform= entrypoint=["/bin/sleep" "10800"] cmd=[]
354
Starting container: ca9473b0e3dd9e409ac0e6811a72b56153e80f6945dfe589336097051aaba7c3
355
Started container: ca9473b0e3dd9e409ac0e6811a72b56153e80f6945dfe589336097051aaba7c3
356
🐳 docker exec cmd=[chown -R 1001:1001 /workspace/Southpaw1496/astro-blog] user=0 workdir=
357
Exec command '[chown -R 1001:1001 /workspace/Southpaw1496/astro-blog]'
358
Working directory '/workspace/Southpaw1496/astro-blog'
359
🐳 docker network connect GITEA-ACTIONS-TASK-1_WORKFLOW_JOB-Deploy-to-Cloudflare-Pages-network GITEA-ACTIONS-TASK-1_WORKFLOW_JOB-Deploy-to-Cloudflare-Pages
360
Writing entry to tarball workflow/event.json len:4527
361
Writing entry to tarball workflow/envs.txt len:0
362
Extracting content to '/var/run/act/'
363
☁ git clone 'https://gitea.com/actions/checlout' # ref=v3
364
cloning https://gitea.com/actions/checlout to /tmp/.cache/act/actions-checlout@v3
365
Unable to clone https://gitea.com/actions/checlout refs/heads/v3: authentication required
366
authentication required
367
skipping post step for 'Deploy'; step was not executed
368
skipping post step for 'Install PNPM'; step was not executed
369
skipping post step for 'Checkout'; step was not executed
370
Cleaning up services for job Deploy to Cloudflare Pages
371
Cleaning up container for job Deploy to Cloudflare Pages
372
Removed container: ca9473b0e3dd9e409ac0e6811a72b56153e80f6945dfe589336097051aaba7c3
373
🐳 docker volume rm GITEA-ACTIONS-TASK-1_WORKFLOW_JOB-Deploy-to-Cloudflare-Pages
374
🐳 docker volume rm GITEA-ACTIONS-TASK-1_WORKFLOW_JOB-Deploy-to-Cloudflare-Pages-env
375
Cleaning up network for job Deploy to Cloudflare Pages
376
🏁 Job failed
377
authentication required
Why is authentication required to pull from a public repository?