Skip to content

Commit 91ba67c

Browse files
PHP: Add artifact signing (#189)
* PHP: Add artifact signing Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
1 parent 675ee87 commit 91ba67c

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/publish-pecl.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Build and publish extension packages
22

33
permissions:
44
contents: write
5+
id-token: write
6+
attestations: write
57

68
on:
79
release:
@@ -351,3 +353,9 @@ jobs:
351353
asset_path: ${{ steps.build-package.outputs.package-file }}
352354
asset_name: ${{ steps.build-package.outputs.package-file }}
353355
asset_content_type: application/gzip
356+
357+
- name: Attest package provenance
358+
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.create-release == 'true')
359+
uses: actions/attest-build-provenance@v2
360+
with:
361+
subject-path: ${{ steps.build-package.outputs.package-file }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
### Changes
66

7+
* PHP: Add Sigstore-based artifact attestation for published PECL packages
78
* PHP: Pin all third-party GitHub Actions to SHA commit hashes to mitigate supply chain attacks (CWE-829)
89
* PHP: Remove repo-level SECURITY.md to use org-level security policy consistently across all valkey-io repositories
910
* PHP: Add FT.* (Vector Search) commands: ftCreate, ftDropIndex, ftList, ftSearch, ftAggregate, ftInfo, ftAliasAdd, ftAliasDel, ftAliasUpdate, ftAliasList for standalone and cluster clients ([#171](https://github.com/valkey-io/valkey-glide-php/pull/171))

0 commit comments

Comments
 (0)