Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Read composite action inputs from env and pin actions by digest (#6168)

Greg Akerd0d49feee828
diff --git a/.github/actions/run-pytest/action.yml b/.github/actions/run-pytest/action.yml
index 346c9d745..c6e357110 100644
--- a/.github/actions/run-pytest/action.yml
+++ b/.github/actions/run-pytest/action.yml
@@ -21,18 +21,20 @@ runs:
- name: Run pytest
shell: bash
+ env:
+ TEST_TYPE: ${{ inputs.test-type }}
run: |
- if [ "${{ inputs.test-type }}" == "integration" ]; then
+ if [ "$TEST_TYPE" == "integration" ]; then
MARKER="integration"
TIMEOUT="30"
MAX_PROCS="2"
EXTRA_FLAGS=""
- elif [ "${{ inputs.test-type }}" == "client_process" ]; then
+ elif [ "$TEST_TYPE" == "client_process" ]; then
MARKER="client_process or subprocess_heavy"
TIMEOUT="5"
MAX_PROCS="0"
EXTRA_FLAGS="-x"
- elif [ "${{ inputs.test-type }}" == "conformance" ]; then
+ elif [ "$TEST_TYPE" == "conformance" ]; then
MARKER="conformance"
TIMEOUT="120"
MAX_PROCS="0"
diff --git a/.github/actions/setup-gitleaks/action.yml b/.github/actions/setup-gitleaks/action.yml
index 0aba01f40..4934a2207 100644
--- a/.github/actions/setup-gitleaks/action.yml
+++ b/.github/actions/setup-gitleaks/action.yml
@@ -12,7 +12,9 @@ runs:
steps:
- name: Install gitleaks
shell: bash
+ env:
+ GITLEAKS_VERSION: ${{ inputs.version }}
run: |
- curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${{ inputs.version }}/gitleaks_${{ inputs.version }}_linux_x64.tar.gz" \
+ curl -sSfL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" \
| tar -xz -C /usr/local/bin gitleaks
gitleaks version
diff --git a/.github/actions/setup-uv/action.yml b/.github/actions/setup-uv/action.yml
index fa97d3f68..e6ef95426 100644
--- a/.github/actions/setup-uv/action.yml
+++ b/.github/actions/setup-uv/action.yml
@@ -23,11 +23,13 @@ runs:
- name: Install dependencies
shell: bash
+ env:
+ RESOLUTION: ${{ inputs.resolution }}
run: |
- if [ "${{ inputs.resolution }}" == "locked" ]; then
+ if [ "$RESOLUTION" == "locked" ]; then
uv sync --locked
- elif [ "${{ inputs.resolution }}" == "upgrade" ]; then
+ elif [ "$RESOLUTION" == "upgrade" ]; then
uv sync --upgrade
else
- uv sync --resolution ${{ inputs.resolution }}
+ uv sync --resolution "$RESOLUTION"
fi
diff --git a/.github/workflows/update-config-schema.yml b/.github/workflows/update-config-schema.yml
index b60b2a569..389fde277 100644
--- a/.github/workflows/update-config-schema.yml
+++ b/.github/workflows/update-config-schema.yml
@@ -12,8 +12,7 @@ on:
workflow_dispatch:
permissions:
- contents: write
- pull-requests: write
+ contents: read
jobs:
update-config-schema:
diff --git a/.github/workflows/update-sdk-docs.yml b/.github/workflows/update-sdk-docs.yml
index e7cd6ac9c..115014b0d 100644
--- a/.github/workflows/update-sdk-docs.yml
+++ b/.github/workflows/update-sdk-docs.yml
@@ -12,8 +12,7 @@ on:
workflow_dispatch:
permissions:
- contents: write
- pull-requests: write
+ contents: read
jobs:
update-sdk-docs:
diff --git a/renovate.json b/renovate.json
index ade3de2a0..a61143b8c 100644
--- a/renovate.json
+++ b/renovate.json
@@ -2,7 +2,8 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>PrefectHQ/renovate-config",
- "github>PrefectHQ/renovate-config:python"
+ "github>PrefectHQ/renovate-config:python",
+ "helpers:pinGitHubActionDigests"
],
"prConcurrentLimit": 5,
"prHourlyLimit": 5