Skip to content

Commit 3c08a3a

Browse files
authored
Pin GitHub Actions to commit SHAs (#919)
Pin third-party GitHub Actions references to immutable commit SHAs.
1 parent 6597529 commit 3c08a3a

4 files changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/claude.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,16 @@ jobs:
4545
with:
4646
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
4747

48-
claude_args: --model claude-opus-4-6
49-
5048
# Optional: Customize the trigger phrase (default: @claude)
5149
# trigger_phrase: "/claude"
52-
50+
5351
# Optional: Trigger when specific user is assigned to an issue
5452
# assignee_trigger: "claude-bot"
55-
56-
# Allow Claude to run linters, typecheckers, and tests
57-
claude_args: |
58-
--allowed-tools "Bash(python -m ruff check:*),Bash(python -m ruff format:*),Bash(python -m mypy:*),Bash(python -m pytest:*)"
5953

60-
# Optional: Add custom instructions for Claude to customize its behavior for your project
61-
# claude_args: --system-prompt "Follow our coding standards"
54+
# CLI args: model selection + allowed tools for lint/typecheck/tests.
55+
# Add further flags (e.g. --system-prompt "...") to this block rather
56+
# than a second claude_args key — duplicate YAML keys are rejected by
57+
# GitHub Actions.
58+
claude_args: |
59+
--model claude-opus-4-6
60+
--allowed-tools "Bash(python -m ruff check:*),Bash(python -m ruff format:*),Bash(python -m mypy:*),Bash(python -m pytest:*)"

.github/workflows/pypi-quota-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Post to Slack
4040
if: steps.quota.outputs.alert == 'true' && github.event_name != 'pull_request'
41-
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # 2.1.1
41+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 (sha-pinned)
4242
with:
4343
method: chat.postMessage
4444
token: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/slack-issue-notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Post to Slack
12-
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # 2.1.1
12+
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 (sha-pinned)
1313
with:
1414
method: chat.postMessage
1515
token: ${{ secrets.SLACK_BOT_TOKEN }}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
python -m pytest tests/ -v --cov=claude_agent_sdk --cov-report=xml
3232
3333
- name: Upload coverage to Codecov
34-
uses: codecov/codecov-action@v4
34+
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 (sha-pinned)
3535
with:
3636
file: ./coverage.xml
3737
fail_ci_if_error: false

0 commit comments

Comments
 (0)