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

ci: reuse repeated workflow configuration (#1464)

mldangelo-oaibc666ed46f71
diff --git a/.github/workflows/action-ci.yml b/.github/workflows/action-ci.yml
index 27747f3ea..a0b4a367f 100644
--- a/.github/workflows/action-ci.yml
+++ b/.github/workflows/action-ci.yml
@@ -1,16 +1,12 @@
name: Action CI
on:
- push:
- paths:
- - action.yml
- - github-action/**
- - .github/workflows/action-ci.yml
- pull_request:
+ push: &action-changes
paths:
- action.yml
- github-action/**
- .github/workflows/action-ci.yml
+ pull_request: *action-changes
workflow_dispatch:
permissions:
diff --git a/.github/workflows/container-release.yml b/.github/workflows/container-release.yml
index 598078847..01fa46778 100644
--- a/.github/workflows/container-release.yml
+++ b/.github/workflows/container-release.yml
@@ -140,7 +140,8 @@ jobs:
- name: Prepare native runtime
uses: ./.github/actions/download-native
- - name: Set up Docker Buildx
+ - &set-up-docker-buildx
+ name: Set up Docker Buildx
uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
- &sign-in-to-github-container-registry
@@ -248,8 +249,7 @@ jobs:
with:
persist-credentials: false
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
+ - *set-up-docker-buildx
- name: Download verified platform digests
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -379,8 +379,7 @@ jobs:
with:
persist-credentials: false
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
+ - *set-up-docker-buildx
- *sign-in-to-github-container-registry
diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml
index 3b3e5811e..f9c768108 100644
--- a/.github/workflows/node-ci.yml
+++ b/.github/workflows/node-ci.yml
@@ -529,7 +529,7 @@ jobs:
needs: [validate-title, package]
runs-on: windows-latest
timeout-minutes: 20
- strategy:
+ strategy: &windows-node-strategy
fail-fast: false
matrix:
node: ["22.13.0", "24"]
@@ -556,10 +556,7 @@ jobs:
windows-test,
windows-verify,
]
- strategy:
- fail-fast: false
- matrix:
- node: ["22.13.0", "24"]
+ strategy: *windows-node-strategy
steps:
- name: Require every Windows coverage job
if: needs.validate-title.result != 'success' || (needs.static-checks.result != 'success' || needs.plugin-host.result != 'success' || needs.plugin-source.result != 'success' || needs.windows-test.result != 'success' || needs.windows-verify.result != 'success')