mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-26 06:07:13 +00:00
Mutable action tags are a supply-chain risk: a moved tag runs different code without a diff. Every workflow action is now pinned through .github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync or tampered one fails instead of running.
18 lines
1.1 KiB
Properties
18 lines
1.1 KiB
Properties
sonar.projectKey=storytold_wordcraft
|
|
sonar.organization=storytold
|
|
|
|
# S4790 (weak hash): SHA-1 is a start-key and "SHA1/1K" checksum algorithm that ODF package
|
|
# encryption (ODF 1.3 Part 2 §4.16) names, and older office suites wrote it. It is needed to open
|
|
# those files, not chosen for new security: WordCraft writes a SHA-256 start key and checksum.
|
|
sonar.issue.ignore.multicriteria=odt_sha1,gha-lockfile
|
|
sonar.issue.ignore.multicriteria.odt_sha1.ruleKey=rust:S4790
|
|
sonar.issue.ignore.multicriteria.odt_sha1.resourceKey=crates/formats/src/odt/crypt.rs
|
|
|
|
# githubactions:S7637 asks for every action to be pinned to a commit SHA. A workflow covered by
|
|
# .github/workflows/actions.lock runs the commit the lockfile records, so its tag refs are pinned
|
|
# and the lockfile covers the actions those actions use too. Sonar does not read lockfiles yet, so
|
|
# the rule flags the tag refs anyway:
|
|
# https://community.sonarsource.com/t/githubactions-s7637-false-positives-for-actions-pinned-through-native-actions-lock/190814
|
|
sonar.issue.ignore.multicriteria.gha-lockfile.ruleKey=githubactions:S7637
|
|
sonar.issue.ignore.multicriteria.gha-lockfile.resourceKey=.github/workflows/**
|