You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tooling.apache.org by "andrewmusselman (via GitHub)" <gi...@apache.org> on 2026/02/18 21:56:17 UTC

[I] Pin syft version in Dockerfile (tooling-trusted-releases)

andrewmusselman opened a new issue, #705:
URL: https://github.com/apache/tooling-trusted-releases/issues/705

   **ASVS:** 15.2.1 · Finding 2.2
   **Severity:** MEDIUM
   **CWE:** CWE-829 (Inclusion of Functionality from Untrusted Control Sphere)
   
   ### Description
   
   In `Dockerfile.alpine` (lines 51–52), syft is installed via a remote script from the `main` branch without version pinning. A TODO comment already acknowledges this:
   
   ```dockerfile
   # TODO: This is much faster than the above, but we should figure out how to pin the binaries
   RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
   ```
   
   Other tools in the same Dockerfile (parlay, sbomqs) are properly pinned.
   
   ### Recommendation
   
   ```dockerfile
   ENV SYFT_VERSION=1.38.2
   RUN curl -sSfL https://raw.githubusercontent.com/anchore/syft/v${SYFT_VERSION}/install.sh | sh -s -- -b /usr/local/bin -v v${SYFT_VERSION}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org


Re: [I] Pin syft version in Dockerfile (tooling-trusted-releases)

Posted by "alitheg (via GitHub)" <gi...@apache.org>.
alitheg closed issue #705: Pin syft version in Dockerfile
URL: https://github.com/apache/tooling-trusted-releases/issues/705


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tooling.apache.org
For additional commands, e-mail: dev-help@tooling.apache.org