Title: CodeQL with custom build run autobuild in analyze step · Issue #14373 · github/codeql · GitHub
Open Graph Title: CodeQL with custom build run autobuild in analyze step · Issue #14373 · github/codeql
X Title: CodeQL with custom build run autobuild in analyze step · Issue #14373 · github/codeql
Description: I'm running CodeQL against a golang project that use the 1.21.1 version. I've noticed that in the latest iteration the custom build step seems to be ignored during the analyze step and the autobuild script is launched even if I've alread...
Open Graph Description: I'm running CodeQL against a golang project that use the 1.21.1 version. I've noticed that in the latest iteration the custom build step seems to be ignored during the analyze step and the autobuil...
X Description: I'm running CodeQL against a golang project that use the 1.21.1 version. I've noticed that in the latest iteration the custom build step seems to be ignored during the analyze step and the ...
Opengraph URL: https://github.com/github/codeql/issues/14373
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CodeQL with custom build run autobuild in analyze step","articleBody":"I'm running CodeQL against a golang project that use the 1.21.1 version.\r\nI've noticed that in the latest iteration the custom build step seems to be ignored during the analyze step and the autobuild script is launched even if I've already build it.\r\nI can't understand if I'm doing something wrong, but when I was using the default golang version the autobuild script was not running...\r\n\r\nThe problem for me is that the default `make` command that the autobuild script is launching is not building anything but is the command for running the linter and the test suites, so is waisting time downloading things and running tests that are not inherent to the code quality step.\r\n\r\nYou can see the script launched [here](https://github.com/mia-platform/miactl/actions/runs/6406415744/job/17390972485#step:7:70). And the workflow for codeql is the following:\r\n\r\n```\r\nenv:\r\n GO_VERSION: 1.21.1\r\n GORELEASER_VERSION: v1.21.2\r\n\r\njobs:\r\n codeql:\r\n runs-on: ubuntu-latest\r\n permissions:\r\n security-events: write\r\n steps:\r\n - name: Checkout repository\r\n uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0\r\n with:\r\n show-progress: false\r\n - name: Setup Golang\r\n uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0\r\n with:\r\n go-version: ${{ env.GO_VERSION }}\r\n cache: false\r\n - name: Setup Goreleaser\r\n uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0\r\n with:\r\n version: ${{ env.GORELEASER_VERSION }}\r\n install-only: true\r\n - name: Initialize CodeQL\r\n uses: github/codeql-action/init@ddccb873888234080b77e9bc2d4764d5ccaaccf9 # v2.21.9\r\n with:\r\n languages: go\r\n - name: Run Build\r\n run: make build\r\n - name: Perform CodeQL Analysis\r\n uses: github/codeql-action/analyze@ddccb873888234080b77e9bc2d4764d5ccaaccf9 # v2.21.9\r\n```","author":{"url":"https://github.com/JGiola","@type":"Person","name":"JGiola"},"datePublished":"2023-10-04T13:20:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/14373/codeql/issues/14373"}
| 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:99ec7c14-2cd6-ffcb-da2f-8320663b82ea |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A32C:353E3:179545:20C4AC:6A51124C |
| html-safe-nonce | d4e4fd9a5547c7e96f627289bf1519050a2f061aa4a746c9b7b47afb19564c01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzJDOjM1M0UzOjE3OTU0NToyMEM0QUM6NkE1MTEyNEMiLCJ2aXNpdG9yX2lkIjoiNTQ1NzQ4MzI3ODI5MzQ3MTgyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 401e23a7e5603ad810d8457add7b119e08c2d1eeef098a8be67a847537ebfa1a |
| hovercard-subject-tag | issue:1926208532 |
| 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/14373/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e18e41313c3e4b4367e10165c3fb77162c611b647d6a78f36787cfd2511e79a3/github/codeql/issues/14373 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e18e41313c3e4b4367e10165c3fb77162c611b647d6a78f36787cfd2511e79a3/github/codeql/issues/14373 |
| og:image:alt | I'm running CodeQL against a golang project that use the 1.21.1 version. I've noticed that in the latest iteration the custom build step seems to be ignored during the analyze step and the autobuil... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JGiola |
| hostname | github.com |
| expected-hostname | github.com |
| None | b076e100febaa00374cd89239f915d00dd3187f7c68b12bc2b7688181305344d |
| turbo-cache-control | no-preview |
| go-import | github.com/github/codeql git https://github.com/github/codeql.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 143040428 |
| octolytics-dimension-repository_nwo | github/codeql |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143040428 |
| octolytics-dimension-repository_network_root_nwo | github/codeql |
| 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 | f9137f6d981cbbfd780af369f80ce890b2d0d2d4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width