The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
fix(infra): `_release.yml` permissions (#33222)
Mason Daugherty89b4d7b6c193
diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.ymlindex b615b88e5b..dc50158743 100644--- a/.github/workflows/_release.yml+++ b/.github/workflows/_release.yml@@ -4,8 +4,8 @@## Handles version bumping, building, and publishing to PyPI with authentication.-name: 'π Package Release'-run-name: 'Release ${{ inputs.working-directory }} ${{ inputs.release-version }}'+name: "π Package Release"+run-name: "Release ${{ inputs.working-directory }} ${{ inputs.release-version }}"on:workflow_call:inputs:@@ -19,11 +19,11 @@ on:required: truetype: stringdescription: "From which folder this pipeline executes"- default: 'libs/langchain'+ default: "libs/langchain"release-version:required: truetype: string- default: '0.1.0'+ default: "0.1.0"description: "New version of package being released"dangerous-nonmaster-release:required: false@@ -36,6 +36,9 @@ env:UV_FROZEN: "true"UV_NO_SYNC: "true"+permissions:+ contents: write # Required for creating GitHub releases+jobs:# Build the distribution package and extract version info# Runs in isolated environment with minimal permissions for security@@ -43,6 +46,8 @@ jobs:if: github.ref == 'refs/heads/master' || inputs.dangerous-nonmaster-releaseenvironment: Scheduled testingruns-on: ubuntu-latest+ permissions:+ contents: readoutputs:pkg-name: ${{ steps.check-version.outputs.pkg-name }}@@ -95,6 +100,8 @@ jobs:needs:- buildruns-on: ubuntu-latest+ permissions:+ contents: readoutputs:release-body: ${{ steps.generate-release-body.outputs.release-body }}steps:@@ -226,6 +233,8 @@ jobs:- release-notes- test-pypi-publishruns-on: ubuntu-latest+ permissions:+ contents: readtimeout-minutes: 20steps:- uses: actions/checkout@v5@@ -382,10 +391,12 @@ jobs:- test-pypi-publish- pre-release-checksruns-on: ubuntu-latest+ permissions:+ contents: readstrategy:matrix:partner: [openai, anthropic]- fail-fast: false # Continue testing other partners if one fails+ fail-fast: false # Continue testing other partners if one failsenv:ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}ANTHROPIC_FILES_API_IMAGE_ID: ${{ secrets.ANTHROPIC_FILES_API_IMAGE_ID }}