Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

fix(ci): avoid saving interrupted pnpm caches (#1419)

mldangelo-oai8efb4241f2d8
diff --git a/.github/actions/setup-tools/action.yml b/.github/actions/setup-tools/action.yml
index 90d5af39a..57d3ba77b 100644
--- a/.github/actions/setup-tools/action.yml
+++ b/.github/actions/setup-tools/action.yml
@@ -18,14 +18,14 @@ runs:
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
with:
package_json_file: package.json
- cache: true
- cache_dependency_path: ${{ inputs.cache-dependency-path }}
- - name: Set up Node.js
- if: inputs.setup-node == 'true'
+ # setup-node saves its cache only after a successful job.
+ - name: Set up Node.js and pnpm cache
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
- node-version: "22.13.0"
+ node-version: ${{ inputs.setup-node == 'true' && '22.13.0' || '' }}
architecture: ${{ inputs.architecture }}
+ cache: pnpm
+ cache-dependency-path: ${{ inputs.cache-dependency-path }}
- name: Compile TypeScript tools
if: inputs.compile == 'true'
shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }}