Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish provenance for public packages #2664

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/sweet-poems-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@astrojs/starlight-docsearch': patch
'@astrojs/starlight': patch
'@astrojs/starlight-tailwind': patch
'@astrojs/starlight-markdoc': patch
---

Publishes provenance containing verifiable data to link a package back to its source repository and the specific build instructions used to publish it.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
name: Release
if: ${{ github.repository_owner == 'withastro' }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
Comment on lines +13 to +15
Copy link
Member

@delucis delucis Dec 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, looks like this still isn’t the right permissions combo in our case. The workflow failed after merging: https://github.com/withastro/starlight/actions/runs/12316634406/job/34377330918

Might need write access to create the release PR? Not sure why though — workflow looks the same as the Astro permission fix PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah there was withastro/astro#8752 which updated to contents: write. Not much additional context in there though 😁

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made a fix PR: #2665

steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down
3 changes: 3 additions & 0 deletions packages/docsearch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
},
"devDependencies": {
"@astrojs/starlight": "workspace:*"
},
"publishConfig": {
"provenance": true
}
}
3 changes: 3 additions & 0 deletions packages/markdoc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
"peerDependencies": {
"@astrojs/markdoc": "^0.11.4",
"@astrojs/starlight": ">=0.23.0"
},
"publishConfig": {
"provenance": true
}
}
3 changes: 3 additions & 0 deletions packages/starlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,5 +212,8 @@
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"vfile": "^6.0.2"
},
"publishConfig": {
"provenance": true
}
}
3 changes: 3 additions & 0 deletions packages/tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"@astrojs/starlight": ">=0.9.0",
"@astrojs/tailwind": "^5.0.0",
"tailwindcss": "^3.3.3"
},
"publishConfig": {
"provenance": true
}
}
Loading