Skip to content

refactor(redteam): drop Anthropic SDK, use raw HTTP #34

refactor(redteam): drop Anthropic SDK, use raw HTTP

refactor(redteam): drop Anthropic SDK, use raw HTTP #34

Workflow file for this run

name: Build Pentest Image
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push pentest image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
${{ env.REGISTRY }}/codewiresh/pentest:latest
${{ env.REGISTRY }}/codewiresh/pentest:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max