[medium] oelint-adv: SRCREV follows the branch head (AUTOREV) #920

Closed
opened 2026-11-05 20:13:48 +00:00 by pruefwerk · 1 comment
Member

medium Finding

Scanner: oelint-adv
Severity: medium
Rule: oelint.vars.autorev
CWE: CWE-494
CRA: cra-ai-6 — Integritätsprüfung (Annex I)

Description

The usage of 'AUTOREV' for SRCREV leads to not reproducible builds

CRA Annex I Part I (2)(f): the integrity of the software is protected; an image built from unverified or moving sources cannot be traced to them.

Location

File: fixtures/nightly/firmware/yocto-layer/recipes-app/pump-fw/pump-fw_git.bb (line 6)

Code

SRCREV = "${AUTOREV}"

Remediation

Pin SRCREV to a commit: with AUTOREV every build takes whatever the branch holds, and the image cannot be rebuilt or traced to its sources.


Fingerprint: 327ec4c4bbf865caecbded14a9f3cd9c3a39132c72d0880a38ec032c33f3f25b
Generated by compliance-scanner
Open in Prüfwerk / In Prüfwerk öffnen

## medium Finding **Scanner:** oelint-adv **Severity:** medium **Rule:** oelint.vars.autorev **CWE:** CWE-494 **CRA:** cra-ai-6 — Integritätsprüfung (Annex I) ### Description The usage of 'AUTOREV' for SRCREV leads to not reproducible builds CRA Annex I Part I (2)(f): the integrity of the software is protected; an image built from unverified or moving sources cannot be traced to them. ### Location **File:** `fixtures/nightly/firmware/yocto-layer/recipes-app/pump-fw/pump-fw_git.bb` (line 6) ### Code ``` SRCREV = "${AUTOREV}" ``` ### Remediation Pin SRCREV to a commit: with AUTOREV every build takes whatever the branch holds, and the image cannot be rebuilt or traced to its sources. --- *Fingerprint:* `327ec4c4bbf865caecbded14a9f3cd9c3a39132c72d0880a38ec032c33f3f25b` *Generated by compliance-scanner* [Open in Prüfwerk / In Prüfwerk öffnen](https://pruefwerk.breakpilot.com/findings?target=6ae9aa2160f5d8045fc570a7)
pruefwerk added the severity:mediumcra:annex-ipruefwerk labels 2026-11-05 20:13:48 +00:00
Author
Member

Prüfwerk: Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind.

The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.

**Prüfwerk:** Die Datei liegt in Testdaten (z. B. fixtures/ oder testdata/), die von der Prüfung ausgenommen sind. The file lies in test data (such as fixtures/ or testdata/), which is left out of the scan.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#920