diff --git a/.github/workflows/super-linter.lock.yml b/.github/workflows/super-linter.lock.yml index 71e09057956..d75480b12e3 100644 --- a/.github/workflows/super-linter.lock.yml +++ b/.github/workflows/super-linter.lock.yml @@ -1,4 +1,4 @@ -# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"790401e03637c9c3e5ec97fc695a501f579af8106d1a46e80e18c295da3d4125","body_hash":"58e50d9e50a5703659aff48179ff01c02bddb057023623ae2ad1d388be5b9421","strict":true,"agent_id":"codex","agent_model":"copilot/mai-code-1-flash-picker","engine_versions":{"codex":"0.150.1"}} +# gh-aw-metadata: {"schema_version":"v4","frontmatter_hash":"bb52857ae29982e731a6c770798c7e281ed13fafd5ef61df1cb80440953fc0e2","body_hash":"1584356c4c6880c9992837550094892b93621fe51fa4033fe254ebed73df028b","strict":true,"agent_id":"codex","agent_model":"copilot/mai-code-1-flash-picker","engine_versions":{"codex":"0.150.1"}} # gh-aw-manifest: {"version":1,"secrets":["CODEX_API_KEY","COPILOT_GITHUB_TOKEN","GH_AW_GITHUB_MCP_SERVER_TOKEN","GH_AW_GITHUB_TOKEN","GH_AW_OTEL_GRAFANA_AUTHORIZATION","GH_AW_OTEL_GRAFANA_ENDPOINT","GH_AW_OTEL_SENTRY_AUTHORIZATION","GH_AW_OTEL_SENTRY_ENDPOINT","GITHUB_TOKEN","OPENAI_API_KEY"],"actions":[{"repo":"actions/cache/restore","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/cache/save","sha":"55cc8345863c7cc4c66a329aec7e433d2d1c52a9","version":"v6.1.0"},{"repo":"actions/checkout","sha":"3d3c42e5aac5ba805825da76410c181273ba90b1","version":"v7.0.1"},{"repo":"actions/download-artifact","sha":"3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c","version":"v8.0.1"},{"repo":"actions/github-script","sha":"3a2844b7e9c422d3c10d287c895573f7108da1b3","version":"v9.0.0"},{"repo":"actions/setup-node","sha":"820762786026740c76f36085b0efc47a31fe5020","version":"v7.0.0"},{"repo":"actions/upload-artifact","sha":"043fb46d1a93c77aae656e7c1c64a875d1fc6a0a","version":"v7.0.1"},{"repo":"super-linter/super-linter","sha":"4ce20838b8ab83717e78138c5b3a1407148e0918","version":"v8.7.0"}],"containers":[{"image":"ghcr.io/github/gh-aw-firewall/agent:0.28.10","digest":"sha256:c01e6d16d11ea4f2a46cc023a9f402224a3b3861b026818eec0dc586d7e6918e","pinned_image":"ghcr.io/github/gh-aw-firewall/agent:0.28.10@sha256:c01e6d16d11ea4f2a46cc023a9f402224a3b3861b026818eec0dc586d7e6918e"},{"image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.10","digest":"sha256:c3a18aebb8251339117ea998296315de17bada366f8d03919b3348ea71112e64","pinned_image":"ghcr.io/github/gh-aw-firewall/api-proxy:0.28.10@sha256:c3a18aebb8251339117ea998296315de17bada366f8d03919b3348ea71112e64"},{"image":"ghcr.io/github/gh-aw-firewall/squid:0.28.10","digest":"sha256:c06076f7aca95df713e0748c44d80c0a3c2538fad67bfdd04296d45158e083e6","pinned_image":"ghcr.io/github/gh-aw-firewall/squid:0.28.10@sha256:c06076f7aca95df713e0748c44d80c0a3c2538fad67bfdd04296d45158e083e6"},{"image":"ghcr.io/github/gh-aw-mcpg:v0.4.14","digest":"sha256:b2f0c2b2f17b5fbe809e5bb99dc185b6ddd70df25295dc63a6d526350334eff5","pinned_image":"ghcr.io/github/gh-aw-mcpg:v0.4.14@sha256:b2f0c2b2f17b5fbe809e5bb99dc185b6ddd70df25295dc63a6d526350334eff5"},{"image":"ghcr.io/github/gh-aw-node","digest":"sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e","pinned_image":"ghcr.io/github/gh-aw-node@sha256:bac2192f6374d6262116399b34fc5e143d576f82719e90a18261cae7480f4d4e"},{"image":"ghcr.io/github/github-mcp-server:v1.11.0","digest":"sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699","pinned_image":"ghcr.io/github/github-mcp-server:v1.11.0@sha256:fbec75de11c255213fa08d80fb166abe73d851fff631c51c0079872967720699"}],"mcp_servers":[{"name":"github","tools":["get_commit","get_file_contents","get_latest_release","get_me","get_pull_request","get_pull_request_comments","get_pull_request_diff","get_pull_request_files","get_pull_request_review_comments","get_pull_request_reviews","get_pull_request_status","get_release_by_tag","get_tag","issue_read","list_branches","list_commits","list_issue_types","list_issues","list_pull_requests","list_releases","list_starred_repositories","list_tags","pull_request_read","search_code","search_issues","search_pull_requests","search_repositories"]},{"name":"safeoutputs","tools":["create_issue","missing_data","missing_tool","noop"]}]} # This file was automatically generated by gh-aw. DO NOT EDIT. To debug this workflow, load the skill at https://github.com/github/gh-aw/blob/main/debug.md # @@ -23,7 +23,7 @@ # # For more information: https://github.github.com/gh-aw/introduction/overview/ # -# Runs Markdown quality checks using Super Linter and creates issues for violations +# Runs Go module quality checks using Super Linter and creates issues for violations # # Resolved workflow manifest: # Imports: @@ -1615,7 +1615,7 @@ jobs: uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0 env: WORKFLOW_NAME: "Super Linter Report" - WORKFLOW_DESCRIPTION: "Runs Markdown quality checks using Super Linter and creates issues for violations" + WORKFLOW_DESCRIPTION: "Runs Go module quality checks using Super Linter and creates issues for violations" HAS_PATCH: ${{ needs.agent.outputs.has_patch }} GH_AW_DETECTION_CONTINUE_ON_ERROR: "true" GH_AW_DETECTION_SKIP_PROMPT_SUMMARY: "true" @@ -1698,7 +1698,7 @@ jobs: RUST_LOG: ${{ runner.debug == 1 && 'trace,hyper_util=info,mio=info,reqwest=info,os_info=info,codex_otel=warn,codex_core=debug,codex_exec=debug' || 'warn' }} TRACEPARENT: ${{ env.GITHUB_AW_OTEL_TRACE_ID != '' && env.GITHUB_AW_OTEL_PARENT_SPAN_ID != '' && format('00-{0}-{1}-01', env.GITHUB_AW_OTEL_TRACE_ID, env.GITHUB_AW_OTEL_PARENT_SPAN_ID) || '' }} WORKFLOW_NAME: "Super Linter Report" - WORKFLOW_DESCRIPTION: "Runs Markdown quality checks using Super Linter and creates issues for violations" + WORKFLOW_DESCRIPTION: "Runs Go module quality checks using Super Linter and creates issues for violations" HAS_PATCH: ${{ needs.agent.outputs.has_patch }} GH_AW_DETECTION_CONTINUE_ON_ERROR: "true" run: | @@ -1942,7 +1942,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LOG_FILE: super-linter.log VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'schedule' && 'true' || 'false' }} - VALIDATE_MARKDOWN: "true" + VALIDATE_GO_MODULES: "true" - name: Check for linting issues id: check-results run: | diff --git a/.github/workflows/super-linter.md b/.github/workflows/super-linter.md index 1555ec801f9..9aac9e91427 100644 --- a/.github/workflows/super-linter.md +++ b/.github/workflows/super-linter.md @@ -1,7 +1,7 @@ --- private: true emoji: "🔍" -description: Runs Markdown quality checks using Super Linter and creates issues for violations +description: Runs Go module quality checks using Super Linter and creates issues for violations on: workflow_dispatch: schedule: @@ -49,8 +49,8 @@ jobs: CREATE_LOG_FILE: "true" LOG_FILE: super-linter.log DEFAULT_BRANCH: main - # Only validate Markdown - other linters (Go, JS, YAML, Shell) run in CI - VALIDATE_MARKDOWN: "true" + # Only validate Go modules - other linters run in CI + VALIDATE_GO_MODULES: "true" # Scheduled runs have no diff, so they must validate the full codebase. VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'schedule' && 'true' || 'false' }} # Avoid false-negative failures from super-linter summary formatter @@ -128,7 +128,7 @@ You are an expert code quality analyst for a Go-based GitHub CLI extension proje - Categorize errors by severity (critical, high, medium, low) - Identify patterns in the errors - Determine which errors are most important to fix first - - Note: This workflow only validates Markdown files. Other linters (Go, JavaScript, YAML, Shell, etc.) are handled by separate CI jobs + - Note: This workflow only validates Go modules. Other linters are handled by separate CI jobs 3. **Create a detailed issue** with the following structure: ### Issue Title @@ -192,7 +192,7 @@ Use format: "Code Quality Report - [Date] - [X] issues found" - **Suggest fixes**: Give practical recommendations - **Use proper formatting**: Make the issue easy to read and navigate - **If no errors found**: Create a positive report celebrating clean code -- **Remember**: This workflow only validates Markdown files. Other file types (Go, JavaScript, YAML, Shell, GitHub Actions) are handled by separate CI workflows +- **Remember**: This workflow only validates Go modules. Other file types are handled by separate CI workflows ## Validating Fixes with Super Linter @@ -207,17 +207,17 @@ To validate your fixes locally before committing, run super-linter using Docker: docker run --rm \ -e DEFAULT_BRANCH=main \ -e RUN_LOCAL=true \ - -e VALIDATE_MARKDOWN=true \ + -e VALIDATE_GO_MODULES=true \ -v $(pwd):/tmp/lint \ - ghcr.io/super-linter/super-linter:slim-v8.6.0 + ghcr.io/super-linter/super-linter:v8.7.0 # Run super-linter on specific file types only -# For example, to validate only Markdown files: +# For example, to validate only Go modules: docker run --rm \ -e RUN_LOCAL=true \ - -e VALIDATE_MARKDOWN=true \ + -e VALIDATE_GO_MODULES=true \ -v $(pwd):/tmp/lint \ - ghcr.io/super-linter/super-linter:slim-v8.6.0 + ghcr.io/super-linter/super-linter:v8.7.0 ``` **Note**: The Docker command uses the same super-linter configuration as this workflow. Files are mounted from your current directory to `/tmp/lint` in the container.