runner icon indicating copy to clipboard operation
runner copied to clipboard

action workflow can not work in “import project” or branch

Open hktalent opened this issue 4 years ago • 6 comments

http://github.com/hktalent/vscan forked from http://github.com/veo/vscan 1、I import project,from http://github.com/hktalent/vscan http://github.com/hktalent/scan4all

the workflow is work ok at veo/vscan

2、enable image 3、run、or push tag,not work image nothing happened

why?

hktalent avatar Jun 20 '22 09:06 hktalent

could you try matching your build.yml with mine: https://github.com/adminvns/cypress_reports/blob/main/.github/workflows/cypress-report.yml I guess maybe you are missing some attributes.

image

adminvns avatar Jun 20 '22 12:06 adminvns

thanks @adminvns Still not working

hktalent avatar Jun 20 '22 15:06 hktalent

Faced the same problem. The private repository from Gitea was moved to github a few days ago. GH-actions doesn't work, and workflow dispatch too.

Maybe this will be useful for debugging, for someone who can trace x-github-request-id:

$ curl -X POST https://:${GITHUB_ACCESS_TOKEN}@api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows/docker-image.yml/dispatches -H 'Content-type: application/json' -d '{"ref": "develop"}' -i

HTTP/2 204 
server: GitHub.com
date: Mon, 20 Jun 2022 15:58:44 GMT
x-oauth-scopes: repo, workflow
x-accepted-oauth-scopes: 
github-authentication-token-expiration: 2022-08-28 12:19:52 UTC
x-github-media-type: github.v3; format=json
x-ratelimit-limit: 5000
x-ratelimit-remaining: 4990
x-ratelimit-reset: 1655742340
x-ratelimit-used: 10
x-ratelimit-resource: core
access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset
access-control-allow-origin: *
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
content-security-policy: default-src 'none'
vary: Accept-Encoding, Accept, X-Requested-With
x-github-request-id: BA07:256A:1B6C5D0:1C15C5E:62B09934

and this one from the mannual run (POST /project/repo/actions/manual):

Status: 302 Found
location: https://github.com/project/repo/actions/workflows/docker-image.yml
x-github-request-id: A101:5673:134E267:1489C23:62B0995A

BOPOHA avatar Jun 20 '22 16:06 BOPOHA

actions/checkout@v2, actions/setup-go@v2, and goreleaser/goreleaser-action@v2 are not allowed to be used in hktalent/scan4all. Actions in this workflow must be: within a repository owned by hktalent. image image

I'm pretty sure it's just a personal project I imported, but it just doesn't work

hktalent avatar Jun 21 '22 00:06 hktalent

I don't understand, why fork, or image the action can not work

hktalent avatar Jun 21 '22 00:06 hktalent

image

hktalent avatar Jun 21 '22 07:06 hktalent