Install script piped into the shell
A linter installed with curl | sh.
The install script runs as soon as it downloads, with no check that it's the script the workflow's author read. Anyone who controls the server or the domain controls the build.
Download a fixed release, compare its SHA-256 to a value written in the workflow, then run it.
# Installs a tool by piping its install script into the shell.name: Lint on: push: branches: [main] permissions: contents: read jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: persist-credentials: false - run: curl -sSfL https://example.com/install.sh | sh -s -- -b /usr/local/bin - run: example-linter ./...