Skip to content

Commit 30e6144

Browse files
authored
Pin GitHub Actions to commit SHAs (#218)
Also sets up dependabot for just actions
1 parent e44497d commit 30e6144

3 files changed

Lines changed: 21 additions & 11 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
# Check for updates to GitHub Actions every week
7+
interval: "weekly"
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-node@v6
1919
with:
20-
node-version: '24'
21-
- uses: oven-sh/setup-bun@v2
20+
node-version: "24"
21+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
2222
with:
2323
bun-version: 1.3.11
2424
- name: Install dependencies

.github/workflows/codex-update.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ name: Codex Update
22

33
on:
44
schedule:
5-
- cron: '0 5 * * *'
5+
- cron: "0 5 * * *"
66
workflow_dispatch:
77

88
permissions:
99
contents: read
1010
packages: read
1111

1212
env:
13-
CODEX_PACKAGE: '@openai/codex'
14-
CODEX_UPDATE_LABEL: 'codex-update'
15-
GITHUB_BOT_USERNAME: 'github-actions[bot]'
13+
CODEX_PACKAGE: "@openai/codex"
14+
CODEX_UPDATE_LABEL: "codex-update"
15+
GITHUB_BOT_USERNAME: "github-actions[bot]"
1616

1717
jobs:
1818
check:
@@ -83,20 +83,20 @@ jobs:
8383
8484
- name: Finalize update with Codex
8585
id: codex-finalize
86-
uses: openai/codex-action@v1
86+
uses: openai/codex-action@10cb888d2ed3b99867f7e7ccff174a861a75aeb6
8787
with:
8888
openai-api-key: ${{ secrets.OPENAI_API_KEY }}
8989
codex-version: ${{ env.VERSION }}
9090
output-file: pr-body.md
9191
codex-args: >-
9292
-c sandbox_workspace_write.writable_roots=["${{ github.workspace }}/.git"]
9393
prompt: >
94-
Finalize the update using codex-update-compat skill.
95-
Commit the changes, the message should mention that types or/and tests after the update were fixed.
94+
Finalize the update using codex-update-compat skill.
95+
Commit the changes, the message should mention that types or/and tests after the update were fixed.
9696
When creating the final message do not mention:
9797
* Validation run details.
9898
* Commits.
99-
* Hyperlinks.
99+
* Hyperlinks.
100100
Mention only previously failed tests with failure reasons, also what you changed and why.
101101
102102
- name: Push branch updates
@@ -143,4 +143,3 @@ jobs:
143143
gh pr close "$pr_number" \
144144
--comment "Closing obsolete update PR"
145145
done
146-

0 commit comments

Comments
 (0)