Skip to content

chore(deps): update bump-dependencies #417

chore(deps): update bump-dependencies

chore(deps): update bump-dependencies #417

Workflow file for this run

name: build
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
lint:
permissions:
contents: read
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: shellcheck *.sh scripts/*.sh tests/*.sh
- run: bash tests/init-firewall_test.sh
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: Dockerfile
verbose: true
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
with:
dockerfile: tests/Dockerfile.runtime-capabilities
verbose: true
- name: Build sandbox image under test
run: docker build -t cli-sandbox:pr .
- name: Build runtime capability fixture
run: >-
docker build
-f tests/Dockerfile.runtime-capabilities
--build-arg BASE_IMAGE=cli-sandbox:pr
-t cli-sandbox:runtime-capabilities-test
.
- name: Test runtime capability and firewall contract
run: bash tests/runtime-capabilities_test.sh cli-sandbox:runtime-capabilities-test
push:
needs: [lint]
if: >-
(github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
github.ref == 'refs/heads/main'
uses: libops/.github/.github/workflows/build-push.yaml@main
permissions:
contents: read
id-token: write
packages: write
with:
image: cli-sandbox
ref: ${{ github.sha }}
tag: codex
expected-main-sha: ${{ github.sha }}
scan: true

Check failure on line 57 in .github/workflows/push.yaml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/push.yaml (Line: 57, Col: 13): Invalid input, scan is not defined in the referenced workflow.
sign: true
push-cli:
needs: [push]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
strategy:
matrix:
cli: [claude, pi]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4
- uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4
- name: login
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${{ github.actor }}" --password-stdin
- uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7
with:
platforms: linux/amd64,linux/arm64
build-args: CLI=${{ matrix.cli }}
tags: ghcr.io/libops/cli-sandbox:${{ matrix.cli }}
push: true
cache-from: |
type=registry,ref=ghcr.io/libops/cli-sandbox:cache-${{ matrix.cli }}
type=registry,ref=ghcr.io/libops/cli-sandbox:cache-amd64
type=registry,ref=ghcr.io/libops/cli-sandbox:cache-arm64
cache-to: type=registry,ref=ghcr.io/libops/cli-sandbox:cache-${{ matrix.cli }},mode=max