fix: SHORT_SHA computation — use portable bash, not expression syntax
Some checks failed
Deploy / build (push) Failing after 2m6s
Deploy / scan (push) Has been skipped
Deploy / report-vulns (push) Has been skipped
CI / lint-test (push) Successful in 1m23s

This commit is contained in:
kert
2026-03-23 22:30:27 -04:00
parent 1fd4debdb7
commit 4449e7043a
4 changed files with 12 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ jobs:
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{GITHUB_SHA::8}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
- name: Build notebooks - name: Build notebooks
uses: https://github.com/docker/build-push-action@v6 uses: https://github.com/docker/build-push-action@v6
@@ -77,7 +77,7 @@ jobs:
uses: https://github.com/actions/checkout@v4 uses: https://github.com/actions/checkout@v4
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{GITHUB_SHA::8}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
- name: Scan notebooks - name: Scan notebooks
uses: https://github.com/aquasecurity/trivy-action@master uses: https://github.com/aquasecurity/trivy-action@master

View File

@@ -26,7 +26,7 @@ jobs:
password: ${{ secrets.REGISTRY_TOKEN }} password: ${{ secrets.REGISTRY_TOKEN }}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{GITHUB_SHA::8}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
- name: Build notebooks - name: Build notebooks
uses: https://github.com/docker/build-push-action@v6 uses: https://github.com/docker/build-push-action@v6
@@ -76,7 +76,7 @@ jobs:
uses: https://github.com/actions/checkout@v4 uses: https://github.com/actions/checkout@v4
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{GITHUB_SHA::8}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
- name: Scan notebooks - name: Scan notebooks
uses: https://github.com/aquasecurity/trivy-action@master uses: https://github.com/aquasecurity/trivy-action@master

View File

@@ -209,7 +209,7 @@ jobs:
{_docker_login_step(registry)} {_docker_login_step(registry)}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{build_block} {build_block}
@@ -220,7 +220,7 @@ jobs:
{_checkout_step()} {_checkout_step()}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{scan_block} {scan_block}
@@ -390,7 +390,7 @@ jobs:
{_docker_login_step(registry)} {_docker_login_step(registry)}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{build_block} {build_block}
@@ -401,7 +401,7 @@ jobs:
{_checkout_step()} {_checkout_step()}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{scan_block} {scan_block}

View File

@@ -204,7 +204,7 @@ jobs:
{_docker_login_step(registry)} {_docker_login_step(registry)}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{ {
_build_push_step( _build_push_step(
@@ -228,7 +228,7 @@ jobs:
{_checkout_step()} {_checkout_step()}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{scan_block} {scan_block}
@@ -407,7 +407,7 @@ jobs:
{_docker_login_step(registry)} {_docker_login_step(registry)}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{build_block} {build_block}
@@ -418,7 +418,7 @@ jobs:
{_checkout_step()} {_checkout_step()}
- name: Compute short SHA - name: Compute short SHA
run: echo "SHORT_SHA=${{{{GITHUB_SHA::8}}}}" >> "$GITHUB_ENV" run: echo "SHORT_SHA=$(echo $GITHUB_SHA | head -c 8)" >> "$GITHUB_ENV"
{scan_block} {scan_block}