Files
dependabot[bot] 927fa5708b Bump the go-dependencies group with 3 updates
Bumps the go-dependencies group with 3 updates: [actions/ai-inference](https://github.com/actions/ai-inference), [github/codeql-action](https://github.com/github/codeql-action) and [snyk/actions/setup](https://github.com/snyk/actions).


Updates `actions/ai-inference` from 2.1.1 to 3
- [Release notes](https://github.com/actions/ai-inference/releases)
- [Commits](https://github.com/actions/ai-inference/compare/v2.1.1...v3)

Updates `github/codeql-action` from 4.37.3 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/v4.37.3...v4.39.1)

Updates `snyk/actions/setup` from 8e119fbb6c251787721d34ba683ed48eba792766 to 11b673cfb4b0dc0d860a1323caa199d54950dcce
- [Release notes](https://github.com/snyk/actions/releases)
- [Commits](https://github.com/snyk/actions/compare/8e119fbb6c251787721d34ba683ed48eba792766...11b673cfb4b0dc0d860a1323caa199d54950dcce)

---
updated-dependencies:
- dependency-name: actions/ai-inference
  dependency-version: '3'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: go-dependencies
- dependency-name: github/codeql-action
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: snyk/actions/setup
  dependency-version: 11b673cfb4b0dc0d860a1323caa199d54950dcce
  dependency-type: direct:production
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-01 19:29:26 +00:00

56 lines
1.4 KiB
YAML

name: "[SAST] Codacy"
on:
# push:
# branches: ["main"]
# pull_request:
# branches: ["main"]
workflow_dispatch:
inputs:
Upload:
description: 'Upload SARIF results file'
default: true
type: boolean
permissions:
contents: read
jobs:
codacy-security-scan:
name: Codacy Security Scan
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
actions: read
steps:
- uses: actions/checkout@v7
- name: Fix encoding to UTF-8
run: |
find . -type f -name "*.go" | while read -r file; do
if ! iconv -f UTF-8 -t UTF-8 "$file" >/dev/null 2>&1; then
echo "File $file is not UTF-8"
iconv -f CP1251 -t UTF-8 "$file" -o "$file.tmp" && mv "$file.tmp" "$file"
fi
done
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@562ee3e92b8e92df8b67e0a5ff8aa8e261919c08
env:
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8"
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
output: results.sarif
format: sarif
gh-code-scanning-compat: true
max-allowed-issues: 2147483647
- name: Upload SARIF results file
if: ${{ github.event.inputs.Upload == 'true' }}
uses: github/codeql-action/upload-sarif@v4.39.1
with:
sarif_file: results.sarif