[GH-ISSUE #1025] Issue: Not Found Http Error on CodeQL job #596

Closed
opened 2026-03-01 21:44:49 +03:00 by kerem · 3 comments
Owner

Originally created by @katelovescode on GitHub (Mar 2, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1025

System information

  • Operating System: MacOS Monterey

  • Architecture:

  • Apple M1: No

  • Docker version:
    Screen Shot 2022-02-28 at 9 31 08 PM

  • Docker image used in act:
    Screen Shot 2022-02-28 at 9 31 33 PM

  • act version: 0.2.25

Expected behaviour

CodeQL analysis runs locally

Actual behaviour

CodeQL has an httpError in the middle of the run.

Workflow and/or repository

workflow
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
  push:
    branches: [ develop ]
  pull_request:
    # The branches below must be a subset of the branches above
    branches: [ develop ]
  schedule:
    - cron: '34 19 * * 0'

jobs:
  analyze:
    name: Analyze
    runs-on: ubuntu-latest
    permissions:
      actions: read
      contents: read
      security-events: write

    strategy:
      fail-fast: false
      matrix:
        language: [ 'javascript', 'ruby' ]
        # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
        # Learn more about CodeQL language support at https://git.io/codeql-language-support

    steps:
    - name: Checkout repository
      uses: actions/checkout@v2

    # Initializes the CodeQL tools for scanning.
    - name: Initialize CodeQL
      uses: github/codeql-action/init@v1
      with:
        languages: ${{ matrix.language }}
        # If you wish to specify custom queries, you can do so here or in a config file.
        # By default, queries listed here will override any specified in a config file.
        # Prefix the list here with "+" to use these queries and those in the config file.
        # queries: ./path/to/local/query, your-org/your-repo/queries@main

    # Autobuild attempts to build any compiled languages  (C/C++, C#, or Java).
    # If this step fails, then you should remove it and run the build manually (see below)
    - name: Autobuild
      uses: github/codeql-action/autobuild@v1

    # ℹ️ Command-line programs to run using the OS shell.
    # 📚 https://git.io/JvXDl

    # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
    #    and modify them (or add more) to build your code if your project
    #    uses a compiled language

    #- run: |
    #   make bootstrap
    #   make release

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@v1

Steps to reproduce

act --defaultbranch develop -s GITHUB_TOKEN=[token] --verbose

act output

Log
[CodeQL/Analyze-1                   ] Working directory '/Users/katedonaldson/Projects/pieforproviders'
[CodeQL/Analyze-2                   ]   ❗  ::error::Not Found
[CodeQL/Analyze-1                   ]   ❗  ::error::Not Found
| RequestError [HttpError]: Not Found
|     at /run/act/actions/github-codeql-action-init@v1/node_modules/@octokit/request/dist-node/index.js:66:23
|     at processTicksAndRejections (internal/process/task_queues.js:95:5)
|     at async Job.doExecute (/run/act/actions/github-codeql-action-init@v1/node_modules/bottleneck/light.js:405:18) {
|   status: 404,
|   headers: {
|     'access-control-allow-origin': '*',
|     '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',
|     connection: 'close',
|     'content-encoding': 'gzip',
|     'content-security-policy': "default-src 'none'",
|     'content-type': 'application/json; charset=utf-8',
|     date: 'Wed, 02 Mar 2022 03:13:39 GMT',
|     'github-authentication-token-expiration': '2022-03-27 20:43:49 UTC',
|     'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
|     server: 'GitHub.com',
|     'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
|     'transfer-encoding': 'chunked',
|     vary: 'Accept-Encoding, Accept, X-Requested-With',
|     'x-accepted-oauth-scopes': '',
|     'x-content-type-options': 'nosniff',
|     'x-frame-options': 'deny',
|     'x-github-media-type': 'github.v3; format=json',
|     'x-github-request-id': 'DD5D:17CC:2394D40:4CA1BE9:621EE0E3',
|     'x-oauth-scopes': 'admin:org, repo',
|     'x-ratelimit-limit': '5000',
|     'x-ratelimit-remaining': '4996',
|     'x-ratelimit-reset': '1646194419',
|     'x-ratelimit-resource': 'core',
|     'x-ratelimit-used': '4',
|     'x-xss-protection': '0'
|   },
|   request: {
|     method: 'GET',
|     url: 'https://api.github.com/repos/pieforproviders/pieforproviders/actions/runs/1',
|     headers: {
|       accept: 'application/vnd.github.v3+json',
|       'user-agent': 'CodeQL-Action/1.1.3 octokit-core.js/3.1.2 Node.js/14.19.0 (linux; x64)',
|       authorization: 'token [REDACTED]'
|     },
|     request: { agent: [Agent], hook: [Function: bound bound register] }
|   },
|   documentation_url: 'https://docs.github.com/rest/reference/actions#get-a-workflow-run'
| }
| RequestError [HttpError]: Not Found
|     at /run/act/actions/github-codeql-action-init@v1/node_modules/@octokit/request/dist-node/index.js:66:23
|     at processTicksAndRejections (internal/process/task_queues.js:95:5)
|     at async Job.doExecute (/run/act/actions/github-codeql-action-init@v1/node_modules/bottleneck/light.js:405:18) {
|   status: 404,
|   headers: {
|     'access-control-allow-origin': '*',
|     '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',
|     connection: 'close',
|     'content-encoding': 'gzip',
|     'content-security-policy': "default-src 'none'",
|     'content-type': 'application/json; charset=utf-8',
|     date: 'Wed, 02 Mar 2022 03:13:39 GMT',
|     'github-authentication-token-expiration': '2022-03-27 20:43:49 UTC',
|     'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',
|     server: 'GitHub.com',
|     'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
|     'transfer-encoding': 'chunked',
|     vary: 'Accept-Encoding, Accept, X-Requested-With',
|     'x-accepted-oauth-scopes': '',
|     'x-content-type-options': 'nosniff',
|     'x-frame-options': 'deny',
|     'x-github-media-type': 'github.v3; format=json',
|     'x-github-request-id': 'DD5E:0A65:3E89454:76AE6DE:621EE0E3',
|     'x-oauth-scopes': 'admin:org, repo',
|     'x-ratelimit-limit': '5000',
|     'x-ratelimit-remaining': '4997',
|     'x-ratelimit-reset': '1646194419',
|     'x-ratelimit-resource': 'core',
|     'x-ratelimit-used': '3',
|     'x-xss-protection': '0'
|   },
|   request: {
|     method: 'GET',
|     url: 'https://api.github.com/repos/pieforproviders/pieforproviders/actions/runs/1',
|     headers: {
|       accept: 'application/vnd.github.v3+json',
|       'user-agent': 'CodeQL-Action/1.1.3 octokit-core.js/3.1.2 Node.js/14.19.0 (linux; x64)',
|       authorization: 'token [REDACTED]'
|     },
|     request: { agent: [Agent], hook: [Function: bound bound register] }
|   },
|   documentation_url: 'https://docs.github.com/rest/reference/actions#get-a-workflow-run'
| }
Originally created by @katelovescode on GitHub (Mar 2, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1025 <!-- - Make sure you are able to reproduce it on the [latest version](https://github.com/nektos/act/releases) - Search the existing issues. - Refer to [README](https://github.com/nektos/act/blob/master/README.md). --> ## System information <!-- - Operating System: < Windows | Linux | macOS | etc... > - Architecture: < x64 (64-bit) | x86 (32-bit) | arm64 (64-bit) | arm (32-bit) | etc... > - Apple M1: < yes | no > - Docker version: < output of `docker system info -f "{{.ServerVersion}}"` > - Docker image used in `act`: < can be omitted if it's included in log > - `act` version: < output of `act --version`, if you've built `act` yourself, please provide commit hash > --> - Operating System: MacOS Monterey - Architecture: - Apple M1: No - Docker version: <img width="514" alt="Screen Shot 2022-02-28 at 9 31 08 PM" src="https://user-images.githubusercontent.com/8364647/156099640-c389acc2-02f0-4eef-bfd2-9331d68094f5.png"> - Docker image used in `act`: <img width="205" alt="Screen Shot 2022-02-28 at 9 31 33 PM" src="https://user-images.githubusercontent.com/8364647/156099681-68b3384b-bd73-4266-9bf9-1034c0af7af9.png"> - `act` version: 0.2.25 ## Expected behaviour <!-- - Describe how whole process should go and finish --> CodeQL analysis runs locally ## Actual behaviour <!-- - Describe the issue --> CodeQL has an `httpError` in the middle of the run. ## Workflow and/or repository <!-- - Provide workflow with which we can reproduce the issue OR - Provide link to your GitHub repository that contains the workflow --> <details> <summary>workflow</summary> ```none # For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # # You may wish to alter this file to override the set of languages analyzed, # or to provide custom queries or build logic. # # ******** NOTE ******** # We have attempted to detect the languages in your repository. Please check # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # name: "CodeQL" on: push: branches: [ develop ] pull_request: # The branches below must be a subset of the branches above branches: [ develop ] schedule: - cron: '34 19 * * 0' jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: [ 'javascript', 'ruby' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Learn more about CodeQL language support at https://git.io/codeql-language-support steps: - name: Checkout repository uses: actions/checkout@v2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v1 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines # and modify them (or add more) to build your code if your project # uses a compiled language #- run: | # make bootstrap # make release - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 ``` </details> ## Steps to reproduce <!-- - Make sure to include full command with parameters you used to run `act`, example: 1. Clone example repo (https://github.com/cplee/github-actions-demo) 2. Enter cloned repo directory 3. Run `act -s SUPER_SECRET=im-a-value` --> `act --defaultbranch develop -s GITHUB_TOKEN=[token] --verbose` ## `act` output <!-- - Use `act` with `-v`/`--verbose` and paste output from your terminal in code block below --> <details> <summary>Log</summary> ```none [CodeQL/Analyze-1 ] Working directory '/Users/katedonaldson/Projects/pieforproviders' [CodeQL/Analyze-2 ] ❗ ::error::Not Found [CodeQL/Analyze-1 ] ❗ ::error::Not Found | RequestError [HttpError]: Not Found | at /run/act/actions/github-codeql-action-init@v1/node_modules/@octokit/request/dist-node/index.js:66:23 | at processTicksAndRejections (internal/process/task_queues.js:95:5) | at async Job.doExecute (/run/act/actions/github-codeql-action-init@v1/node_modules/bottleneck/light.js:405:18) { | status: 404, | headers: { | 'access-control-allow-origin': '*', | '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', | connection: 'close', | 'content-encoding': 'gzip', | 'content-security-policy': "default-src 'none'", | 'content-type': 'application/json; charset=utf-8', | date: 'Wed, 02 Mar 2022 03:13:39 GMT', | 'github-authentication-token-expiration': '2022-03-27 20:43:49 UTC', | 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', | server: 'GitHub.com', | 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', | 'transfer-encoding': 'chunked', | vary: 'Accept-Encoding, Accept, X-Requested-With', | 'x-accepted-oauth-scopes': '', | 'x-content-type-options': 'nosniff', | 'x-frame-options': 'deny', | 'x-github-media-type': 'github.v3; format=json', | 'x-github-request-id': 'DD5D:17CC:2394D40:4CA1BE9:621EE0E3', | 'x-oauth-scopes': 'admin:org, repo', | 'x-ratelimit-limit': '5000', | 'x-ratelimit-remaining': '4996', | 'x-ratelimit-reset': '1646194419', | 'x-ratelimit-resource': 'core', | 'x-ratelimit-used': '4', | 'x-xss-protection': '0' | }, | request: { | method: 'GET', | url: 'https://api.github.com/repos/pieforproviders/pieforproviders/actions/runs/1', | headers: { | accept: 'application/vnd.github.v3+json', | 'user-agent': 'CodeQL-Action/1.1.3 octokit-core.js/3.1.2 Node.js/14.19.0 (linux; x64)', | authorization: 'token [REDACTED]' | }, | request: { agent: [Agent], hook: [Function: bound bound register] } | }, | documentation_url: 'https://docs.github.com/rest/reference/actions#get-a-workflow-run' | } | RequestError [HttpError]: Not Found | at /run/act/actions/github-codeql-action-init@v1/node_modules/@octokit/request/dist-node/index.js:66:23 | at processTicksAndRejections (internal/process/task_queues.js:95:5) | at async Job.doExecute (/run/act/actions/github-codeql-action-init@v1/node_modules/bottleneck/light.js:405:18) { | status: 404, | headers: { | 'access-control-allow-origin': '*', | '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', | connection: 'close', | 'content-encoding': 'gzip', | 'content-security-policy': "default-src 'none'", | 'content-type': 'application/json; charset=utf-8', | date: 'Wed, 02 Mar 2022 03:13:39 GMT', | 'github-authentication-token-expiration': '2022-03-27 20:43:49 UTC', | 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin', | server: 'GitHub.com', | 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload', | 'transfer-encoding': 'chunked', | vary: 'Accept-Encoding, Accept, X-Requested-With', | 'x-accepted-oauth-scopes': '', | 'x-content-type-options': 'nosniff', | 'x-frame-options': 'deny', | 'x-github-media-type': 'github.v3; format=json', | 'x-github-request-id': 'DD5E:0A65:3E89454:76AE6DE:621EE0E3', | 'x-oauth-scopes': 'admin:org, repo', | 'x-ratelimit-limit': '5000', | 'x-ratelimit-remaining': '4997', | 'x-ratelimit-reset': '1646194419', | 'x-ratelimit-resource': 'core', | 'x-ratelimit-used': '3', | 'x-xss-protection': '0' | }, | request: { | method: 'GET', | url: 'https://api.github.com/repos/pieforproviders/pieforproviders/actions/runs/1', | headers: { | accept: 'application/vnd.github.v3+json', | 'user-agent': 'CodeQL-Action/1.1.3 octokit-core.js/3.1.2 Node.js/14.19.0 (linux; x64)', | authorization: 'token [REDACTED]' | }, | request: { agent: [Agent], hook: [Function: bound bound register] } | }, | documentation_url: 'https://docs.github.com/rest/reference/actions#get-a-workflow-run' | } ``` </details>
kerem 2026-03-01 21:44:49 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@robertkowalski commented on GitHub (Mar 3, 2022):

@katelovescode i found this PR to the codeQL action, seems you need to pass an environment variable: https://github.com/github/codeql-action/pull/117

<!-- gh-comment-id:1058066440 --> @robertkowalski commented on GitHub (Mar 3, 2022): @katelovescode i found this PR to the codeQL action, seems you need to pass an environment variable: https://github.com/github/codeql-action/pull/117
Author
Owner

@katelovescode commented on GitHub (Mar 7, 2022):

I'll bring this convo over there, this didn't work for me. Thanks though. :/

<!-- gh-comment-id:1061230728 --> @katelovescode commented on GitHub (Mar 7, 2022): I'll bring this convo over there, this didn't work for me. Thanks though. :/
Author
Owner

@poliveira-fuze commented on GitHub (May 15, 2025):

@katelovescode were you able to fix it?

<!-- gh-comment-id:2884364697 --> @poliveira-fuze commented on GitHub (May 15, 2025): @katelovescode were you able to fix it?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#596
No description provided.