Autobuild with working-directory doesn't always work
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- github-actions, shell, typescript
- 領域
- ci-cd
研究方向
比較附加的 working.log 和 not-working.log,先從 autobuild.sh 如何接收和使用 working-directory 值開始。使用位於 monorepo 子目錄下的 solution 重現 workflow,並驗證 autobuild 始終選擇該目錄,而不是 github.workspace;現有的 manual-build workaround 提供了比較依據。
由索引模型根據 Issue 內容生成。
描述
Hi,
I'm working in a monorepo setup and was using the following CodeQL setup to run CodeQL on a sub directory
`
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config: |
queries:
# See https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#using-queries-in-ql-packs
- name: Security and maintainability
uses: security-and-quality
- if: matrix.language == 'csharp'
name: Build solution
uses: github/codeql-action/autobuild@v3
with:
working-directory: code/<redacted>
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"`
Initially, in some runs, the autobuild step correctly picked up a .sln file from the specified working directory but since yesterday, in several runs, the option can be seen to be overriden by the autobuild script and it uses the github.workspace directory i.e., the root of the monorepo.
From the logs, I can see a difference in the environment variables and how the autobuild.sh is run
I'm using manual build as a workaround for now.
- 主要語言
- TypeScript
- 星號
- 1.7k
- 分支
- 495
- 平均合併
- 1 天 2 小時
- 30 天內合併 PR
- 47
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
github/codeql-action 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
github/codeql-action#4052 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4185 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4173 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 45/100
github/codeql-action#4078 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 48/100
github/codeql-action#4008 · 9 則留言 ·
維護者通常 1 天內回覆
查看 github/codeql-action 的全部 Issue
相似的 Issue
-
area/core status/need-triage
難度 2/5 1-3 小時 新手友好度 88/100
google-gemini/gemini-cli#29602 ·
維護者通常 1 天內回覆
-
area: backend enhancement priority: low
難度 2/5 1-3 小時 新手友好度 88/100
snapotter-hq/SnapOtter#1879 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
Tencent/BrowserSkill#390 ·
維護者通常 1 天內回覆
-
good first issue status: needs triaging type: bug version: 2.0
難度 2/5 1-3 小時 新手友好度 85/100
medusajs/medusa#17094 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆