mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-23 07:42:13 -05:00
5224656969
Pushes inline scripts in the Dockerfile into standalone scripts and authenticates requests to GitHub using a Personal Access Token to reduce build flakiness due to GitHub's abuse and ratelimiting due to unauthenticated reuests. Signed-off-by: Brett Logan <lindluni@github.com>
8 lines
315 B
Bash
Executable file
8 lines
315 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
curl --retry 5 --retry-delay 5 -sLO https://dot.net/v1/dotnet-install.sh
|
|
chmod +x dotnet-install.sh
|
|
./dotnet-install.sh --install-dir /usr/share/dotnet -channel STS -version latest
|
|
/usr/share/dotnet/dotnet tool install --tool-path /usr/bin dotnet-format --version 5.0.211103
|