Skip to content

Bump nuitka from 4.1.1 to 4.1.2 #41

Bump nuitka from 4.1.1 to 4.1.2

Bump nuitka from 4.1.1 to 4.1.2 #41

name: Source Provenance
on:
push:
branches: ["main"]
tags: ['[0-9]*.[0-9]*.[0-9]*']
workflow_call:
permissions:
contents: read
jobs:
attest-source-governance:
name: Attest source governance (SLSA Source Track)
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: write
attestations: write
id-token: write
steps:
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: block
allowed-endpoints: >+
github.com:443
api.github.com:443
release-assets.githubusercontent.com:443
uploads.github.com:443
timestamp.githubapp.com:443
fulcio.sigstore.dev:443
rekor.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
*.blob.core.windows.net:443
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: true
- name: Attest source governance (SLSA Source Track)
uses: slsa-framework/source-actions/slsa_with_provenance@v0.1.0
with:
version: v0.6.3
attest-source:
name: Generate source provenance
runs-on: ubuntu-latest
permissions:
contents: read
attestations: write
id-token: write
steps:
- name: "Harden the runner (Block egress traffic: Only allow calls to allowed endpoints)"
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: block
allowed-endpoints: >+
github.com:443
api.github.com:443
uploads.github.com:443
timestamp.githubapp.com:443
fulcio.sigstore.dev:443
rekor.sigstore.dev:443
tuf-repo-cdn.sigstore.dev:443
*.blob.core.windows.net:443
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Generate source archive
run: git archive HEAD --format=tar.gz -o dfetch-source.tar.gz
- name: Attest source provenance
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
with:
subject-path: dfetch-source.tar.gz
- name: Verify source provenance
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh attestation verify dfetch-source.tar.gz \
--repo "${{ github.repository }}" \
--predicate-type https://slsa.dev/provenance/v1 \
--cert-identity-regex "^https://github\.com/${{ github.repository }}/\.github/workflows/source-provenance\.yml@refs/(heads/main|tags/[0-9]+\.[0-9]+\.[0-9]+)$" \
--cert-oidc-issuer https://token.actions.githubusercontent.com
- name: Upload source archive
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: source-archive
path: dfetch-source.tar.gz