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/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ jobs:
run: ./gradlew assembleDebug --no-daemon

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # Lukittu versioon v4.37.0.
uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # Lukittu versioon v4.37.0.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '--- workflow excerpt ---\n'
sed -n '35,55p' .github/workflows/codeql.yml | cat -n

printf '\n--- refs mentioning codeql-action/analyze ---\n'
rg -n "codeql-action/analyze@|v4\.37\." .github/workflows/codeql.yml

Repository: Insaner1980/dBcheck

Length of output: 248


🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '%s\n' '--- workflow excerpt ---'
sed -n '35,55p' .github/workflows/codeql.yml | cat -n

printf '\n%s\n' '--- pinned analyze line ---'
rg -n "github/codeql-action/analyze@" .github/workflows/codeql.yml

sha='e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81'
tag='v4.37.3'
repo='github/codeql-action'

printf '\n%s\n' "--- resolving tag ${tag} for ${repo} ---"
ref_json="$(gh api "repos/${repo}/git/refs/tags/${tag}")"
printf '%s\n' "$ref_json" | jq -r '.object | "ref_type=\(.type) ref_sha=\(.sha)"'

type="$(printf '%s\n' "$ref_json" | jq -r '.object.type')"
ref_sha="$(printf '%s\n' "$ref_json" | jq -r '.object.sha')"

if [ "$type" = tag ]; then
  printf '%s\n' "--- dereferencing annotated tag object ${ref_sha} ---"
  tag_json="$(gh api "repos/${repo}/git/tags/${ref_sha}")"
  tag_commit_sha="$(printf '%s\n' "$tag_json" | jq -r '.object.sha')"
  printf '%s\n' "$tag_json" | jq -r '.tag, .object.type, .object.sha'
else
  tag_commit_sha="$ref_sha"
fi

printf '\n%s\n' '--- commit lookup for tag target ---'
gh api "repos/${repo}/commits/${tag_commit_sha}" --jq '.sha'

printf '\n%s\n' '--- commit lookup for pinned sha ---'
gh api "repos/${repo}/commits/${sha}" --jq '.sha'

printf '\n%s\n' '--- comparison ---'
if [ "$sha" = "$tag_commit_sha" ]; then
  printf '%s\n' 'MATCH'
else
  printf 'MISMATCH pinned=%s tag_commit=%s\n' "$sha" "$tag_commit_sha"
fi

Repository: Insaner1980/dBcheck

Length of output: 1440


Update the stale version annotation. The github/codeql-action/analyze pin points to v4.37.3, but the inline note still says v4.37.0.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/codeql.yml at line 47, Update the inline version
annotation on the github/codeql-action/analyze step to state v4.37.3, matching
the pinned commit; leave the action reference unchanged.

with:
category: "/language:java-kotlin"
Loading