mirror of
https://github.com/CloakHQ/CloakBrowser.git
synced 2026-06-23 11:41:46 +02:00
Pin all 22 action references across ci.yml, publish.yml, and attest-release.yml to immutable commit SHAs. Mutable tags can be force-pushed by attackers (cf. TeamPCP supply chain campaign). Add Dependabot for github-actions to get weekly PRs when pinned actions have new versions.
29 lines
876 B
YAML
29 lines
876 B
YAML
name: Attest Release Binary
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
tag:
|
|
description: 'Release tag (e.g. chromium-v145.0.7632.159.2)'
|
|
required: true
|
|
|
|
jobs:
|
|
attest:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write # Sigstore OIDC
|
|
attestations: write # GitHub attestation API
|
|
contents: write # Download release assets
|
|
steps:
|
|
- name: Download release binaries
|
|
run: gh release download ${{ github.event.inputs.tag }} --repo CloakHQ/cloakbrowser --pattern "cloakbrowser-*.tar.gz" --pattern "cloakbrowser-*.zip"
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
- name: Attest build provenance
|
|
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
|
|
with:
|
|
subject-path: |
|
|
cloakbrowser-*.tar.gz
|
|
cloakbrowser-*.zip
|