mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-19 17:03:03 +01: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.
22 lines
1.3 KiB
Properties
22 lines
1.3 KiB
Properties
sonar.projectKey=storytold_lightcraft
|
|
sonar.organization=storytold
|
|
sonar.coverage.exclusions=**/tools/**,**/docs/**,**/examples/**
|
|
|
|
# Setting sonar.tests without sonar.sources stops the scanner defaulting to the whole repository,
|
|
# which left only the packaging test indexed and the main branch analysed as empty. Sources and
|
|
# tests both start at the root; sonar.test.inclusions picks out the test files, so they are
|
|
# analysed as tests (outside production metrics and coverage) rather than left out.
|
|
sonar.sources=.
|
|
sonar.tests=.
|
|
sonar.test.inclusions=**/tests/**,**/tests.rs,**/tests_*.rs,**/*_tests.rs,**/test_*.py
|
|
sonar.python.coverage.reportPaths=python-coverage.xml
|
|
|
|
# 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
|
|
sonar.issue.ignore.multicriteria.gha-lockfile.ruleKey=githubactions:S7637
|
|
sonar.issue.ignore.multicriteria.gha-lockfile.resourceKey=.github/workflows/**
|