`getNoLanguagesError` / Did not detect any languages to analyze. Please update input in workflow or check that GitHub detects the correct languages in your repository.
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github-actions, typescript, yaml
Hướng nghiên cứu
Bắt đầu với workflow CodeQL và các log github/codeql-action/init được liên kết trong các lần chạy 7839464145, 7840155320 và 7840157412; so sánh việc phát hiện ngôn ngữ với các quyền khác nhau của fork. Được xem là hoàn tất khi các lỗi liên quan đến no-language và quyền giải thích rõ nguyên nhân của chúng, đồng thời hướng người dùng đến hướng dẫn liên quan trong workflow hoặc tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I created two forks of https://github.com/octokit/request.js:
both were created at approximately the same time.
Every single run of the codeql workflow in my repository has ❌ failed.
The first three runs ❌ failed in check-spelling-sandbox, but after giving it security-events: write, it would occasionally
✅ succeed -- and it never yielded the output below.
I'm quite confused by the behavior and output of https://github.com/jsoref/request.js/actions/runs/7839464145
To some extent, the commits in my fork are just copies of the commits in the sandbox fork...
Annotations
1 error and 1 warning
CodeQL-Build
Did not detect any languages to analyze. Please update input in workflow or check that GitHub detects the correct languages in your repository.
CodeQL-Build
Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.
https://github.com/jsoref/request.js/actions/runs/7839464145/job/21392525353
Run github/codeql-action/init@v3
Setup CodeQL tools
Validating workflow
Load language configuration
/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/codeql resolve languages --format=json
{
"xml" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/xml"
],
"javascript" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/javascript"
],
"go" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/go"
],
"python" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/python"
],
"properties" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/properties"
],
"ruby" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/ruby"
],
"csharp" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/csharp"
],
"html" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/html"
],
"java" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/java"
],
"yaml" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/yaml"
],
"swift" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/swift"
],
"cpp" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/cpp"
],
"csv" : [
"/opt/hostedtoolcache/CodeQL/2.16.1/x64/codeql/csv"
]
}
Automatically detected languages:
Error: Did not detect any languages to analyze. Please update input in workflow or check that GitHub detects the correct languages in your repository.
-- note that this repository is configured w/ default read&write permissions (I haven't adjusted my forking code to disable actions -- I will probably do that eventually as workflows in my personal account are too dangerous and frustrating).
By contrast, https://github.com/check-spelling-sandbox/request.js/actions/runs/7840155320 fails in a way that I understand (and am working to fix):
Annotations
2 errors and 1 warning
CodeQL-Build
Resource not accessible by integration
CodeQL-Build
Resource not accessible by integration
CodeQL-Build
Debugging artifacts are unavailable since the 'init' Action failed before it could produce any.
And https://github.com/check-spelling-sandbox/request.js/actions/runs/7840157412 passes
Annotations
2 warnings
CodeQL-Build
This run of the CodeQL Action does not have permission to access Code Scanning API endpoints. As a result, it will not be opted into any experimental features. This could be because the Action is running on a pull request from a fork. If not, please ensure the Action has the 'security-events: write' permission. Details: Resource not accessible by integration
CodeQL-Build
Feature flags do not specify a default CLI version. Falling back to the CLI version shipped with the Action. This is 2.16.1.
-- for the record, the check-spelling-sandbox org uses https://docs.github.com/en/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization#setting-the-permissions-of-the-github_token-for-your-organization to restrict permissions to read -- eventually I'll file a PR to improve the message here since it should be aware that this is a possibility.
Isn't this all the same code? Why would one of my forks complain about not being able to guess what file types are involved while another is able to?
Ideally the error reporting should be sufficiently clear that a non expert would be able to understand what to do. If the possible actions necessary to resolve the problem are sufficiently complicated, then it'd be a good idea to linking to a document that can walk users through the possibilities.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.6k
- Fork
- 493
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 44
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/codeql-action
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/codeql-action#4052 · 4 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
github/codeql-action#4078 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
github/codeql-action#4008 · 9 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
github/codeql-action#3978 · 4 bình luận · 1 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
github/codeql-action#3915 · 6 bình luận · 3 reaction ·
Tất cả issue của github/codeql-action
Issue tương tự
-
[Bug]: Discord Activity titles with emoji are rejected as over 80 characters when they are not Đang mởclawsweeper:linked-pr-open clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:message-loss issue-rating: 🦞 diamond lobster maturity:stable P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
ZCode 3.14.3 に対応する Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
supermomonga/zcode-acp#24 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
growthbook/growthbook#7100 ·
-
triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100