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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to