Skip to content

Bump github/codeql-action from 3.32.6 to 4.32.6 #117

Bump github/codeql-action from 3.32.6 to 4.32.6

Bump github/codeql-action from 3.32.6 to 4.32.6 #117

Workflow file for this run

name: bluebuild
on:
schedule:
- cron:
"00 06 * * *"
push:
branches: [main]
paths-ignore:
- "**.md"
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
bluebuild:
name: Build Custom Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
strategy:
fail-fast: false
matrix:
recipe:
- recipe.yml
steps:
- name: Build Custom Image
uses: blue-build/github-action@24d146df25adc2cf579e918efe2d9bff6adea408 # v1.11.1
with:
recipe: ${{ matrix.recipe }}
cosign_private_key: ${{ secrets.SIGNING_SECRET }}
registry_token: ${{ github.token }}
pr_event_number: ${{ github.event.number }}
maximize_build_space: true
- name: Set lowercase image ref
if: github.event_name != 'pull_request'
run: echo "IMAGE_REF=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"
- name: Generate SBOM
if: github.event_name != 'pull_request'
uses: anchore/sbom-action@57aae528053a48a3f6235f2d9461b05fbcb7366d # v0.23.1
with:
image: ${{ env.IMAGE_REF }}
format: cyclonedx-json
output-file: sbom.cdx.json
- name: Attest SBOM
if: github.event_name != 'pull_request'
run: |
cosign attest --type cyclonedx \
--predicate sbom.cdx.json \
--key env://COSIGN_PRIVATE_KEY \
"$IMAGE_REF"
env:
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}