The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
ci: set explicit workflow permissions (#31830)
Eugene Yurtsev6dca787a9df7
diff --git a/.github/workflows/_compile_integration_test.yml b/.github/workflows/_compile_integration_test.ymlindex 2b40762ad2..d3267d2b13 100644--- a/.github/workflows/_compile_integration_test.yml+++ b/.github/workflows/_compile_integration_test.yml@@ -12,6 +12,9 @@ on:type: stringdescription: "Python version to use"+permissions:+ contents: read+env:UV_FROZEN: "true"diff --git a/.github/workflows/_integration_test.yml b/.github/workflows/_integration_test.ymlindex e64a4a62df..39a29e6e09 100644--- a/.github/workflows/_integration_test.yml+++ b/.github/workflows/_integration_test.yml@@ -12,6 +12,9 @@ on:type: stringdescription: "Python version to use"+permissions:+ contents: read+env:UV_FROZEN: "true"diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.ymlindex 3f191af6ba..22145ad04c 100644--- a/.github/workflows/_lint.yml+++ b/.github/workflows/_lint.yml@@ -12,6 +12,9 @@ on:type: stringdescription: "Python version to use"+permissions:+ contents: read+env:WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.ymlindex 352d0bcb54..4bc564e488 100644--- a/.github/workflows/_test.yml+++ b/.github/workflows/_test.yml@@ -12,6 +12,9 @@ on:type: stringdescription: "Python version to use"+permissions:+ contents: read+env:UV_FROZEN: "true"UV_NO_SYNC: "true"diff --git a/.github/workflows/_test_doc_imports.yml b/.github/workflows/_test_doc_imports.ymlindex b745ab0232..b2ce8f445b 100644--- a/.github/workflows/_test_doc_imports.yml+++ b/.github/workflows/_test_doc_imports.yml@@ -8,6 +8,9 @@ on:type: stringdescription: "Python version to use"+permissions:+ contents: read+env:UV_FROZEN: "true"diff --git a/.github/workflows/_test_pydantic.yml b/.github/workflows/_test_pydantic.ymlindex 1ee049726c..b290690dad 100644--- a/.github/workflows/_test_pydantic.yml+++ b/.github/workflows/_test_pydantic.yml@@ -17,6 +17,9 @@ on:type: stringdescription: "Pydantic version to test."+permissions:+ contents: read+env:UV_FROZEN: "true"UV_NO_SYNC: "true"diff --git a/.github/workflows/check-broken-links.yml b/.github/workflows/check-broken-links.ymlindex 4b25ac14e6..52bfb6f21a 100644--- a/.github/workflows/check-broken-links.yml+++ b/.github/workflows/check-broken-links.yml@@ -5,6 +5,9 @@ on:schedule:- cron: '0 13 * * *'+permissions:+ contents: read+jobs:check-links:if: github.repository_owner == 'langchain-ai' || github.event_name != 'schedule'diff --git a/.github/workflows/check_core_versions.yml b/.github/workflows/check_core_versions.ymlindex e46abba04e..5ee0f93582 100644--- a/.github/workflows/check_core_versions.yml+++ b/.github/workflows/check_core_versions.yml@@ -6,6 +6,9 @@ on:- 'libs/core/pyproject.toml'- 'libs/core/langchain_core/version.py'+permissions:+ contents: read+jobs:check_version_equality:runs-on: ubuntu-latestdiff --git a/.github/workflows/check_diffs.yml b/.github/workflows/check_diffs.ymlindex 0cb3b9be88..2b726e1b9c 100644--- a/.github/workflows/check_diffs.yml+++ b/.github/workflows/check_diffs.yml@@ -16,6 +16,9 @@ concurrency:group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: true+permissions:+ contents: read+env:UV_FROZEN: "true"UV_NO_SYNC: "true"diff --git a/.github/workflows/check_new_docs.yml b/.github/workflows/check_new_docs.ymlindex 716013b087..16ccb42c6b 100644--- a/.github/workflows/check_new_docs.yml+++ b/.github/workflows/check_new_docs.yml@@ -15,6 +15,9 @@ concurrency:group: ${{ github.workflow }}-${{ github.ref }}cancel-in-progress: true+permissions:+ contents: read+jobs:build:runs-on: ubuntu-latestdiff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.ymlindex 2e2ba6bc1e..c738ae286d 100644--- a/.github/workflows/codspeed.yml+++ b/.github/workflows/codspeed.yml@@ -7,6 +7,9 @@ on:pull_request:workflow_dispatch:+permissions:+ contents: read+env:AZURE_OPENAI_CHAT_DEPLOYMENT_NAME: fooAZURE_OPENAI_LEGACY_CHAT_DEPLOYMENT_NAME: foodiff --git a/.github/workflows/people.yml b/.github/workflows/people.ymlindex 354edcf1e5..dd87437ea0 100644--- a/.github/workflows/people.yml+++ b/.github/workflows/people.yml@@ -11,7 +11,8 @@ jobs:langchain-people:if: github.repository_owner == 'langchain-ai' || github.event_name != 'schedule'runs-on: ubuntu-latest- permissions: write-all+ permissions:+ contents: writesteps:- name: Dump GitHub contextenv:@@ -23,4 +24,4 @@ jobs:run: mkdir -p /home/runner/work/_temp/_github_home && printf "[safe]\n\tdirectory = /github/workspace" > /home/runner/work/_temp/_github_home/.gitconfig- uses: ./.github/actions/peoplewith:- token: ${{ secrets.LANGCHAIN_PEOPLE_GITHUB_TOKEN }}\ No newline at end of file+ token: ${{ secrets.LANGCHAIN_PEOPLE_GITHUB_TOKEN }}diff --git a/.github/workflows/run_notebooks.yml b/.github/workflows/run_notebooks.ymlindex 259ece11a2..22454fd58f 100644--- a/.github/workflows/run_notebooks.yml+++ b/.github/workflows/run_notebooks.yml@@ -14,6 +14,9 @@ on:schedule:- cron: '0 13 * * *'+permissions:+ contents: read+env:UV_FROZEN: "true"diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.ymlindex 1b5b094818..cb8359b60f 100644--- a/.github/workflows/scheduled_test.yml+++ b/.github/workflows/scheduled_test.yml@@ -12,6 +12,9 @@ on:schedule:- cron: '0 13 * * *'+permissions:+ contents: read+env:POETRY_VERSION: "1.8.4"UV_FROZEN: "true"