Skip to content

Commit

Permalink
Merge pull request #195308 from Homebrew/zizmor-scheduled-template-in…
Browse files Browse the repository at this point in the history
…jection

workflows/scheduled: fix template-injection zizmor warnings
  • Loading branch information
bevanjkay authored Dec 15, 2024
2 parents fb1f3a7 + ad2a8d6 commit 0450a34
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
needs: create_matrix
name: "Online check (${{ matrix.os }}): ${{ matrix.cask }}"
env:
CASK: ${{ matrix.cask }}
HOMEBREW_GITHUB_API_TOKEN: "${{ github.token }}"
GH_TOKEN: "${{ github.token }}"
REPORTING_ISSUE: 172732
Expand All @@ -72,34 +73,34 @@ jobs:

- name: Check cask source is not archived.
id: archived
run: brew audit --cask --online --skip-style --only github_repository_archived,gitlab_repository_archived ${{ matrix.cask }}
run: brew audit --cask --online --skip-style --only github_repository_archived,gitlab_repository_archived "$CASK"

- name: Report online issues
if: ${{ failure() && steps.archived.conclusion == 'failure' }}
run: |
gh issue comment "$REPORTING_ISSUE" \
--repo homebrew/homebrew-cask \
--body "${{ matrix.cask }} should be archived. Check ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
--body "$CASK should be archived. Check $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
- name: Check cask for unavailable homepage.
id: homepage
run: brew audit --cask --online --skip-style --only homepage ${{ matrix.cask }}
run: brew audit --cask --online --skip-style --only homepage "$CASK"

- name: Report homepage issues
if: ${{ failure() && steps.homepage.conclusion == 'failure' }}
run: |
gh issue comment "$REPORTING_ISSUE" \
--repo homebrew/homebrew-cask \
--body "${{ matrix.cask }} has homepage issues. Check ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
--body "$CASK has homepage issues. Check $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"
- name: Check cask for missing sources.
id: fetch
run: brew fetch --cask ${{ matrix.cask }}
run: brew fetch --cask "$CASK"

- name: Report fetch issues
if: ${{ failure() && steps.fetch.conclusion == 'failure' }}
run: |
gh issue comment "$REPORTING_ISSUE" \
--repo homebrew/homebrew-cask \
--body "${{ matrix.cask }} source has problems. Check ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
--body "$CASK source has problems. Check $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"

0 comments on commit 0450a34

Please sign in to comment.