File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646
4747 - name : Run OSSF Scorecard
4848 uses : ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
49+ continue-on-error : true
4950 with :
5051 results_file : scorecard-results.sarif
5152 results_format : sarif
Original file line number Diff line number Diff line change @@ -116,20 +116,12 @@ jobs:
116116 fi
117117
118118 - name : Install hadolint
119+ if : runner.os == 'Linux'
119120 run : |
120121 # Install hadolint for Dockerfile linting (OS-specific binaries)
121122 HADOLINT_VERSION="2.12.0"
122123 if [[ "${{ runner.os }}" == "Linux" ]]; then
123- curl -sL "https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Linux-x86_64" -o /tmp/hadolint
124- chmod +x /tmp/hadolint
125- sudo mv /tmp/hadolint /usr/local/bin/
126- elif [[ "${{ runner.os }}" == "macOS" ]]; then
127- ARCH="$(uname -m)"
128- if [[ "${ARCH}" == "arm64" ]]; then
129- curl -sL "https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Darwin-arm64" -o /tmp/hadolint
130- else
131- curl -sL "https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Darwin-x86_64" -o /tmp/hadolint
132- fi
124+ curl -fsSL "https://github.com/hadolint/hadolint/releases/download/v${HADOLINT_VERSION}/hadolint-Linux-x86_64" -o /tmp/hadolint
133125 chmod +x /tmp/hadolint
134126 sudo mv /tmp/hadolint /usr/local/bin/
135127 fi
@@ -138,6 +130,7 @@ jobs:
138130 run : ./scripts/actionlint.sh
139131
140132 - name : Run hadolint on Dockerfiles
133+ if : runner.os == 'Linux'
141134 run : ./scripts/hadolint.sh
142135
143136 - name : Check GitHub Actions are pinned to SHAs
You can’t perform that action at this time.
0 commit comments