Skip to content

Commit 640da81

Browse files
edburnsCopilot
andcommitted
copilot-setup-steps: pin gh-aw version and enable pre-commit hooks
- Replace curl|bash gh-aw install with pinned setup action (github/gh-aw@4d44d0e89 v0.73.0, version: v0.68.3) - Add 'git config core.hooksPath .githooks' to enable the repo-root pre-commit hook (runs Spotless on java/src/ changes) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 061d770 commit 640da81

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ jobs:
7676

7777
# Install gh-aw extension for advanced GitHub CLI features
7878
- name: Install gh-aw extension
79-
run: |
80-
curl -fsSL https://raw.githubusercontent.com/githubnext/gh-aw/refs/heads/main/install-gh-aw.sh | bash
79+
uses: github/gh-aw/actions/setup-cli@4d44d0e89851a877f4ddc0cb6c0197e42b1016c5 # v0.73.0
80+
with:
81+
version: v0.68.3
82+
83+
# Enable repository pre-commit hooks (Spotless checks for Java source changes)
84+
- name: Enable pre-commit hooks
85+
run: git config core.hooksPath .githooks
8186

8287
# Install JavaScript dependencies
8388
- name: Install Node.js dependencies

0 commit comments

Comments
 (0)