Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codacy-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
fetch-depth: 0

- name: Run Codacy Analysis
uses: codacy/codacy-analysis-cli-action@v2.0.0
uses: codacy/codacy-analysis-cli-action@v2_1.0.0
with:
Comment on lines 19 to 21
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Operator – invalid action tag detected, b-b-but perhaps a typo?

The tag v2_1.0.0 uses an underscore instead of the dot Codacy expects (v2.1.0). GitHub Actions will fail to resolve the ref and the workflow will error out. Recommend correcting the tag or upgrading to the latest supported major (currently v4).

-        uses: codacy/codacy-analysis-cli-action@v2_1.0.0
+        uses: codacy/codacy-analysis-cli-action@v2.1.0   # Or 'v4.0.0'

🏁 Script executed:

#!/bin/bash
# Fetch tags from the GitHub API
tags=$(curl -s https://api.github.com/repos/codacy/codacy-analysis-cli-action/tags \
  | grep '"name":' \
  | sed -E 's/.*"name": "([^"]+)".*/\1/')

echo "Available v2 tags:"
echo "$tags" | grep "^v2" || echo "No v2 tags found."

echo ""
echo "Checking for 'v2_1.0.0':"
echo "$tags" | grep -x "v2_1.0.0" && echo "→ Found v2_1.0.0" || echo "→ v2_1.0.0 not found"

echo ""
echo "Checking for 'v2.1.0':"
echo "$tags" | grep -x "v2.1.0" && echo "→ Found v2.1.0" || echo "→ v2.1.0 not found"

Length of output: 1267


Operator! Invalid GitHub Action tag detected—Unread Pull requests make me ill!
The workflow is referencing codacy/codacy-analysis-cli-action@v2_1.0.0, which doesn’t exist (underscores aren’t valid and there is no v2.1.0). Either pin to a real v2 patch or upgrade to v4.

• File: .github/workflows/codacy-analysis.yml (around lines 19–21)

-        uses: codacy/codacy-analysis-cli-action@v2_1.0.0
+        uses: codacy/codacy-analysis-cli-action@2.0.1   # latest v2 patch
+        # Or upgrade to v4: codacy/codacy-analysis-cli-action@v4.4.7

Committable suggestion skipped: line range outside the PR's diff.

🤖 Prompt for AI Agents
In .github/workflows/codacy-analysis.yml around lines 19 to 21, the GitHub
Action tag for codacy-analysis-cli-action uses an invalid version string with
underscores (v2_1.0.0), which does not exist. Replace this tag with a valid
existing version, either pin to a real v2 patch version using dots (e.g.,
v2.1.0) or upgrade to a supported major version like v4.

# Your project token can be found in your project settings on Codacy.
# You can also use a GitHub secret (recommended) with your Codacy API token.
Expand Down
Loading