Files
lazyjournal/.github/workflows/sast-codacy.yml
dependabot[bot] 431fe5cdc2 Bump the go-dependencies group across 1 directory with 6 updates
Bumps the go-dependencies group with 6 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `6` | `7` |
| [actions/setup-go](https://github.com/actions/setup-go) | `6` | `7` |
| [actions/ai-inference](https://github.com/actions/ai-inference) | `2` | `2.1.1` |
| [codacy/codacy-analysis-cli-action](https://github.com/codacy/codacy-analysis-cli-action) | `1.1.0` | `4.4.7` |
| [github/codeql-action](https://github.com/github/codeql-action) | `4` | `4.37.3` |
| [snyk/actions/setup](https://github.com/snyk/actions) | `806182742461562b67788a64410098c9d9b96adb` | `8e119fbb6c251787721d34ba683ed48eba792766` |



Updates `actions/checkout` from 6 to 7
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

Updates `actions/setup-go` from 6 to 7
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v6...v7)

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

Updates `codacy/codacy-analysis-cli-action` from 1.1.0 to 4.4.7
- [Release notes](https://github.com/codacy/codacy-analysis-cli-action/releases)
- [Commits](https://github.com/codacy/codacy-analysis-cli-action/compare/d840f886c4bd4edc059706d09c6a1586111c540b...562ee3e92b8e92df8b67e0a5ff8aa8e261919c08)

Updates `github/codeql-action` from 4 to 4.37.3
- [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...v4.37.3)

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

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: go-dependencies
- dependency-name: actions/setup-go
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: go-dependencies
- dependency-name: actions/ai-inference
  dependency-version: 2.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: codacy/codacy-analysis-cli-action
  dependency-version: 4.4.7
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: go-dependencies
- dependency-name: github/codeql-action
  dependency-version: 4.37.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: go-dependencies
- dependency-name: snyk/actions/setup
  dependency-version: 8e119fbb6c251787721d34ba683ed48eba792766
  dependency-type: direct:production
  dependency-group: go-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-08-01 19:29:15 +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.37.3
with:
sarif_file: results.sarif