Skip to content

Commit 84a274d

Browse files
authored
ci: track droid action main (#89)
1 parent 70b6263 commit 84a274d

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

‎.github/workflows/droid-review.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fetch-depth: 1
2929
persist-credentials: false
3030
- name: Run Droid Auto Review
31-
uses: Factory-AI/droid-action@260eac443df653198ed70e9ea9d32980cfabde23 # v13
31+
uses: Factory-AI/droid-action@main
3232
with:
3333
factory_api_key: ${{ secrets.FACTORY_API_KEY }}
3434
automatic_review: true

‎.github/workflows/droid.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
fetch-depth: 1
3636
persist-credentials: false
3737
- name: Run Droid Exec
38-
uses: Factory-AI/droid-action@260eac443df653198ed70e9ea9d32980cfabde23 # v13
38+
uses: Factory-AI/droid-action@main
3939
with:
4040
factory_api_key: ${{ secrets.FACTORY_API_KEY }}
4141
allowed_bots: dependabot,factory-droid

‎tests/test_repo_policies.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,14 @@ def _unpinned_actions(workflow: str) -> list[str]:
125125
return [ref for ref in refs if not ref.startswith("./") and not _FULL_SHA_USES.match(ref)]
126126

127127

128-
# Vendor-generated workflows ("DO NOT EDIT") whose installer tracks a major
129-
# tag. Listed explicitly so any other floating ref, or a new one here, fails.
130-
_VENDOR_MANAGED_ACTIONS = {"pullfrog.yml": ["pullfrog/pullfrog@v0"]}
128+
# Explicitly accepted vendor-managed floating refs; all others must use a SHA.
129+
# Pullfrog tracks a major tag. Droid has no moving major tag, so it tracks
130+
# Factory's main, which occasionally runs ahead of a release (see issue #88).
131+
_VENDOR_MANAGED_ACTIONS = {
132+
"pullfrog.yml": ["pullfrog/pullfrog@v0"],
133+
"droid.yml": ["Factory-AI/droid-action@main"],
134+
"droid-review.yml": ["Factory-AI/droid-action@main"],
135+
}
131136

132137

133138
def _read_lock(name: str) -> tuple[dict[str, str], list[str]]:

0 commit comments

Comments
 (0)