Title: CodeQL won't run locally using `act` · Issue #967 · github/codeql-action · GitHub
Open Graph Title: CodeQL won't run locally using `act` · Issue #967 · github/codeql-action
X Title: CodeQL won't run locally using `act` · Issue #967 · github/codeql-action
Description: I get an HttpError when I run CodeQl locally using act. I opened an issue on act and was pointed to this PR: #117 but adding the environment variable to the .env or to the workflow file isn't working for me, I still get the HttpError. Ou...
Open Graph Description: I get an HttpError when I run CodeQl locally using act. I opened an issue on act and was pointed to this PR: #117 but adding the environment variable to the .env or to the workflow file isn't worki...
X Description: I get an HttpError when I run CodeQl locally using act. I opened an issue on act and was pointed to this PR: #117 but adding the environment variable to the .env or to the workflow file isn't w...
Opengraph URL: https://github.com/github/codeql-action/issues/967
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CodeQL won't run locally using `act`","articleBody":"I get an HttpError when I run CodeQl locally using `act`. I opened an issue on `act` and was pointed to this PR: https://github.com/github/codeql-action/pull/117 but adding the environment variable to the .env or to the workflow file isn't working for me, I still get the HttpError.\r\n\r\nOutput:\r\n```\r\n:error::init action failed: HttpError: Not Found\r\n| RequestError [HttpError]: Not Found\r\n| at /run/act/actions/github-codeql-action-init@v1/node_modules/@octokit/request/dist-node/index.js:66:23\r\n| at processTicksAndRejections (internal/process/task_queues.js:95:5)\r\n| at async Job.doExecute (/run/act/actions/github-codeql-action-init@v1/node_modules/bottleneck/light.js:405:18) {\r\n| status: 404,\r\n| headers: {\r\n| 'access-control-allow-origin': '*',\r\n| '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',\r\n| connection: 'close',\r\n| 'content-encoding': 'gzip',\r\n| 'content-security-policy': \"default-src 'none'\",\r\n| 'content-type': 'application/json; charset=utf-8',\r\n| date: 'Mon, 07 Mar 2022 23:14:30 GMT',\r\n| 'github-authentication-token-expiration': '2022-03-27 20:43:49 UTC',\r\n| 'referrer-policy': 'origin-when-cross-origin, strict-origin-when-cross-origin',\r\n| server: 'GitHub.com',\r\n| 'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',\r\n| 'transfer-encoding': 'chunked',\r\n| vary: 'Accept-Encoding, Accept, X-Requested-With',\r\n| 'x-accepted-oauth-scopes': '',\r\n| 'x-content-type-options': 'nosniff',\r\n| 'x-frame-options': 'deny',\r\n| 'x-github-media-type': 'github.v3; format=json',\r\n| 'x-github-request-id': 'C887:1551:D68506:1958891:622691D5',\r\n| 'x-oauth-scopes': 'admin:org, repo',\r\n| 'x-ratelimit-limit': '5000',\r\n| 'x-ratelimit-remaining': '4810',\r\n| 'x-ratelimit-reset': '1646695312',\r\n| 'x-ratelimit-resource': 'core',\r\n| 'x-ratelimit-used': '190',\r\n| 'x-xss-protection': '0'\r\n| },\r\n| request: {\r\n| method: 'GET',\r\n| url: 'https://api.github.com/repos/pieforproviders/pieforproviders/actions/runs/1',\r\n| headers: {\r\n| accept: 'application/vnd.github.v3+json',\r\n| 'user-agent': 'CodeQL-Action/1.1.3 octokit-core.js/3.1.2 Node.js/14.19.0 (linux; x64)',\r\n| authorization: 'token [REDACTED]'\r\n| },\r\n| request: { agent: [Agent], hook: [Function: bound bound register] }\r\n| },\r\n| documentation_url: 'https://docs.github.com/rest/reference/actions#get-a-workflow-run'\r\n| }\r\n```\r\n\r\ncommand:\r\n\r\n```\r\nact --defaultbranch develop -s GITHUB_TOKEN=[token] --verbose\r\n```\r\n\r\nworkflow file:\r\n\r\n```\r\n# For most projects, this workflow file will not need changing; you simply need\r\n# to commit it to your repository.\r\n#\r\n# You may wish to alter this file to override the set of languages analyzed,\r\n# or to provide custom queries or build logic.\r\n#\r\n# ******** NOTE ********\r\n# We have attempted to detect the languages in your repository. Please check\r\n# the `language` matrix defined below to confirm you have the correct set of\r\n# supported CodeQL languages.\r\n#\r\nname: \"CodeQL\"\r\n\r\non:\r\n push:\r\n branches: [ develop ]\r\n pull_request:\r\n # The branches below must be a subset of the branches above\r\n branches: [ develop ]\r\n schedule:\r\n - cron: '34 19 * * 0'\r\n\r\njobs:\r\n analyze:\r\n name: Analyze\r\n runs-on: ubuntu-latest\r\n permissions:\r\n actions: read\r\n contents: read\r\n security-events: write\r\n\r\n strategy:\r\n fail-fast: false\r\n matrix:\r\n language: [ 'javascript', 'ruby' ]\r\n # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]\r\n # Learn more about CodeQL language support at https://git.io/codeql-language-support\r\n\r\n steps:\r\n - name: Checkout repository\r\n uses: actions/checkout@v3\r\n\r\n # Initializes the CodeQL tools for scanning.\r\n - name: Initialize CodeQL\r\n uses: github/codeql-action/init@v1\r\n env:\r\n CODEQL_LOCAL_RUN: true\r\n with:\r\n languages: ${{ matrix.language }}\r\n # If you wish to specify custom queries, you can do so here or in a config file.\r\n # By default, queries listed here will override any specified in a config file.\r\n # Prefix the list here with \"+\" to use these queries and those in the config file.\r\n # queries: ./path/to/local/query, your-org/your-repo/queries@main\r\n\r\n # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).\r\n # If this step fails, then you should remove it and run the build manually (see below)\r\n - name: Autobuild\r\n uses: github/codeql-action/autobuild@v1\r\n\r\n # ℹ️ Command-line programs to run using the OS shell.\r\n # 📚 https://git.io/JvXDl\r\n\r\n # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines\r\n # and modify them (or add more) to build your code if your project\r\n # uses a compiled language\r\n\r\n #- run: |\r\n # make bootstrap\r\n # make release\r\n\r\n - name: Perform CodeQL Analysis\r\n uses: github/codeql-action/analyze@v1\r\n```","author":{"url":"https://github.com/katelovescode","@type":"Person","name":"katelovescode"},"datePublished":"2022-03-07T23:25:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/967/codeql-action/issues/967"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:78384892-9cb9-5ada-9014-dbbb14a4a558 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AABE:277D93:CA965C:1138514:6A555E3E |
| html-safe-nonce | 2f656e98af39273998003e884b8f44677ae5e165fec6e906eaed8220af582ea7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUJFOjI3N0Q5MzpDQTk2NUM6MTEzODUxNDo2QTU1NUUzRSIsInZpc2l0b3JfaWQiOiIxNzEwMjkwMjI1OTk2MzQ0OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cf7eb42ddad1a6dedf7fc04aa0a151ec50445a1b89ede6a109807e58cfde82a8 |
| hovercard-subject-tag | issue:1162042478 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/codeql-action/967/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7919113575392234ff3bc211f95c563520c11c56e8a3c851f930a129b6aa9cae/github/codeql-action/issues/967 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7919113575392234ff3bc211f95c563520c11c56e8a3c851f930a129b6aa9cae/github/codeql-action/issues/967 |
| og:image:alt | I get an HttpError when I run CodeQl locally using act. I opened an issue on act and was pointed to this PR: #117 but adding the environment variable to the .env or to the workflow file isn't worki... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | katelovescode |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql-action git https://github.com/github/codeql-action.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 259445878 |
| octolytics-dimension-repository_nwo | github/codeql-action |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 259445878 |
| octolytics-dimension-repository_network_root_nwo | github/codeql-action |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 73595e82546ca2415571a2031890ab16ecb3001a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width