Skip to content

Commit c8977a5

Browse files
authored
Merge pull request #206918 from Homebrew/workflows_scheduled_attestation_verify
workflows: use `brew verify` to test attestation
2 parents ec33995 + f6d7c30 commit c8977a5

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/scheduled.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,7 @@ jobs:
167167
- name: Check bottle attestation
168168
id: attestation
169169
if: always()
170-
shell: brew ruby {0}
171-
env:
172-
HOMEBREW_FORMULA: ${{ matrix.name }}
173-
run: |
174-
require "attestation"
175-
formula = Formulary.factory(ENV.fetch("HOMEBREW_FORMULA"))
176-
bottle = formula.bottle
177-
178-
# TODO: Check attestations for all os-arch variations
179-
exit 0 if bottle.blank?
180-
181-
bottle.fetch
182-
Homebrew::Attestation.check_core_attestation(bottle)
170+
run: brew verify --os=all --arch=all "$FORMULA"
183171

184172
- name: Report attestation issues
185173
if: failure() && steps.attestation.conclusion == 'failure'

0 commit comments

Comments
 (0)