chore(deps): bump ossf/scorecard-action from 2.3.3 to 2.4.0 #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
jobs: | |
find-and-replace-job: | |
runs-on: ubuntu-latest | |
name: 'Find and replace on a string' | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Run find-and-replace to remove refs/heads/ | |
uses: ./ | |
id: findandreplace | |
with: | |
source: ${{ github.ref }} | |
find: 'refs/heads/' | |
replace: '' | |
- name: Get the above output | |
run: echo "The replaced value is ${{ steps.findandreplace.outputs.value }}" | |
- name: Run find-and-replace to remove slashes | |
uses: ./ | |
id: findandreplace2 | |
with: | |
source: ${{ steps.findandreplace.outputs.value }} | |
find: '/' | |
replace: '-' | |
- name: Get the final output | |
run: echo "The replaced value is ${{ steps.findandreplace2.outputs.value }}" |