Skip to content
Myr

[actions] add step security runner

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Varun Sharma · committed by Jordan Harband · parent 81fc056 · Browse files · 7 files+78 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+78 added−0 removed

  • other:+78 added−0 removed

7 files+78 added−0 removed

modified:.github/workflows/latest-npm.yml+18 added
modified:.github/workflows/lint.yml+24 added
modified:.github/workflows/rebase.yml+6 added
modified:.github/workflows/release.yml+6 added
modified:.github/workflows/require-allow-edits.yml+5 added
9 unmodified lines
1011 runs-on: ubuntu-latest1213 steps:14 - name: Harden Runner15 uses: step-security/harden-runner@v116 with:17 allowed-endpoints:18 api.github.com:44319 - uses: ljharb/require-allow-edits@main20 env:21 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
modified:.github/workflows/shellcheck.yml+13 added
24 unmodified lines
25 - shell: bash26 file: nvm-exec # only runs in bash2728 steps:29 - name: Harden Runner30 uses: step-security/harden-runner@v131 with:32 allowed-endpoints:33 ghcr.io:44334 github.com:44335 pkg-containers.githubusercontent.com:44336 - uses: actions/checkout@v237 - name: Install shellcheck38 run: brew install shellcheck39 env:40 HOMEBREW_NO_ANALYTICS: 141 - run: "shellcheck --version"42 - name: Run shellcheck on ${{ matrix.file }}43 run: shellcheck -s ${{ matrix.shell }} ${{ matrix.file }}44
2 unmodified lines
47 contents: none48 needs: [shellcheck_matrix]49 runs-on: ubuntu-latest50 steps:51 - name: Harden Runner52 uses: step-security/harden-runner@v153 with:54 egress-policy: block55 - run: 'echo tests completed'
modified:.github/workflows/toc.yml+6 added
9 unmodified lines
1011 runs-on: ubuntu-latest1213 steps:14 - name: Harden Runner15 uses: step-security/harden-runner@v116 with:17 allowed-endpoints:18 github.com:44319 registry.npmjs.org:44320 - uses: actions/checkout@v221 with:22 # https://github.com/actions/checkout/issues/217#issue-59994500523 # pulls all commits (needed for lerna / semantic release to correctly version)
14 unmodified lines