Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

security: Use bundled GitHub provenance attestation mechanism

Clémence Lesnéff7614533623
diff --git a/.github/workflows/pipeline.yaml b/.github/workflows/pipeline.yaml
index 039f86c..0546727 100644
--- a/.github/workflows/pipeline.yaml
+++ b/.github/workflows/pipeline.yaml
@@ -94,7 +94,8 @@ jobs:
- sast-semgrep
runs-on: ubuntu-22.04
permissions:
- # Allow to write to GitHub Packages
+ attestations: write
+ id-token: write
packages: write
steps:
- name: Checkout
@@ -116,7 +117,7 @@ jobs:
with:
version: v${{ env.BUILDX_VERSION }}
- - name: Login to registry - GitHub
+ - name: Login to registry
uses: docker/[email protected]
with:
registry: ${{ env.CONTAINER_REGISTRY_GHCR }}
@@ -141,6 +142,7 @@ jobs:
org.opencontainers.image.vendor=${{ github.actor }}
- name: Build/push container
+ id: build
uses: docker/[email protected]
with:
build-args: |
@@ -151,11 +153,17 @@ jobs:
file: cicd/Dockerfile
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.CONTAINER_PLATFORMS }}
- provenance: true
push: true
sbom: true
tags: ${{ steps.meta.outputs.tags }}
+ - name: Generate attestations
+ uses: actions/[email protected]
+ with:
+ push-to-registry: true
+ subject-digest: ${{ steps.build.outputs.digest }}
+ subject-name: ${{ env.CONTAINER_REGISTRY_GHCR }}/${{ env.CONTAINER_NAME }}
+
create-release:
name: Create release
needs: