Skip to content

Bump step-security/harden-runner from 2.14.1 to 2.14.2 #842

Bump step-security/harden-runner from 2.14.1 to 2.14.2

Bump step-security/harden-runner from 2.14.1 to 2.14.2 #842

Workflow file for this run

name: brew test-bot
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions: {}
jobs:
test-bot:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
contents: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- run: echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> "$GITHUB_PATH"
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@4e53f9c809b54e432fc49f7ee18e56ee4aa45bdc # master
- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-
- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems
- run: brew test-bot --only-cleanup-before
- run: brew test-bot --only-setup
# TODO: re-enable, or figure out how to bypass the style error:
# C: [Correctable] Style/SoleNestedConditional: Consider merging nested conditions into outer if conditions.
# however this syntax is generated by goreleaser itself
# - run: brew test-bot --only-tap-syntax
- run: brew test-bot --only-formulae
if: github.event_name == 'pull_request'
- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: bottles
path: '*.bottle.*'