Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Meta: GitHub ActionsI fails at the very early stage when invoked from non-maintainer's pull request #1155

Closed
konn opened this issue Jan 4, 2021 · 1 comment · Fixed by #1156
Labels
CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@konn
Copy link
Collaborator

konn commented Jan 4, 2021

After merging 7fa3ff6 into my branch konn/expand-splice--lugin, which is a base branch for P.R. #759 , it seems that CIs on GitHub Actions accidentally stop to work at the very first stage, with the following error:

Run technote-space/auto-cancel-redundant-workflow@1
  with:
3
    GITHUB_TOKEN: ***
4
    EXCLUDE_MERGED: false
5
    MERGE_MESSAGE_PREFIX: Merge pull request
6
    EXCLUDE_TAG_PUSH: true
7

8
==================================================
9
Version:  technote-space/auto-cancel-redundant-workflow@v1.6.6
10
          ebfac7bd22600ff6cdaeb14583443594d6819306
11
Event:    pull_request
12
Action:   synchronize
13
sha:      d6d6ab3aabe96b45397d30838f0896792d9297d9
14
ref:      refs/pull/759/merge
15
Labels:
16
owner:    haskell
17
repo:     haskell-language-server
18

19
Dump context
551
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
552
      at async Promise.all (index 0)
553
      at async Object.execute (/home/runner/work/_actions/technote-space/auto-cancel-redundant-workflow/v1/lib/process.js:35:5)
554
      at async run (/home/runner/work/_actions/technote-space/auto-cancel-redundant-workflow/v1/lib/main.js:13:5) {
555
    name: 'HttpError',
556
    status: 403,
557
    headers: {
558
      'access-control-allow-origin': '*',
559
      'access-control-expose-headers': 'ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset',
560
      connection: 'close',
561
      'content-encoding': 'gzip',
562
      'content-security-policy': "default-src 'none'",
563
      'content-type': 'application/json; charset=utf-8',
564
      date: 'Mon, 04 Jan 2021 01:39:30 GMT',
565
      'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
566
      server: 'github.com',
567
      status: '403 Forbidden',
568
      'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
569
      'transfer-encoding': 'chunked',
570
      vary: 'Accept-Encoding, Accept, X-Requested-With',
571
      'x-content-type-options': 'nosniff',
572
      'x-frame-options': 'deny',
573
      'x-github-media-type': 'github.v3; format=json',
574
      'x-github-request-id': '07C7:7A08:49F22D6:9F15113:5FF271D2',
575
      'x-ratelimit-limit': '1000',
576
      'x-ratelimit-remaining': '927',
577
      'x-ratelimit-reset': '1609727926',
578
      'x-ratelimit-used': '73',
579
      'x-xss-protection': '1; mode=block'
580
    },
581
    request: {
582
      method: 'POST',
583
      url: 'https://api.github.com/repos/haskell/haskell-language-server/actions/runs/460048703/cancel',
584
      headers: {
585
        accept: 'application/vnd.github.v3+json',
586
        'user-agent': 'octokit-core.js/3.2.4 Node.js/12.13.1 (linux; x64)',
587
        authorization: 'token [REDACTED]',
588
        'content-length': 0
589
      },
590
      request: { agent: [Agent], hook: [Function: bound bound register] }
591
    },
592
    documentation_url: 'https://docs.github.com/rest/reference/actions#cancel-a-workflow-run'
593
  }
594
  Error: Resource not accessible by integration

Seems like some kind of an access control issue, or perhaps just an upstream glitch.

@jneira jneira added CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Jan 4, 2021
@jneira jneira linked a pull request Jan 4, 2021 that will close this issue
@konn
Copy link
Collaborator Author

konn commented Jan 4, 2021

Thanks @pepeiborra and @jneira!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
CI Continuous integration type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants