[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
Provenance
- Commit
6cc90a4- Tree
82f6652- Author
Varun Sharma <varunsh@stepsecurity.io>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
81fc056
7 files changed+78 added−0 removed
modified:.github/workflows/latest-npm.yml+18 added
6 unmodified lines789101112131415161718192023 unmodified lines444546474849505152535455565758598 unmodified lines6869707172737475766 unmodified lines runs-on: ubuntu-latest outputs: latest: ${{ steps.set-matrix.outputs.requireds }} steps: - name: Harden Runner uses: step-security/harden-runner@v1 with: allowed-endpoints: iojs.org:443 nodejs.org:443 - uses: ljharb/actions/node/matrix@main id: set-matrix with: versionsAsRoot: true23 unmodified lines - node-version: "0.12" - node-version: "0.10"
steps: - name: Harden Runner uses: step-security/harden-runner@v1 with: allowed-endpoints: github.com:443 iojs.org:443 nodejs.org:443 registry.npmjs.org:443 - uses: actions/checkout@v2 - uses: ljharb/actions/node/install@main name: 'nvm install-latest-npm' with:8 unmodified lines name: 'nvm install-latest-npm' needs: [nodes] runs-on: ubuntu-latest steps: - name: Harden Runner uses: step-security/harden-runner@v1 with: egress-policy: block - run: 'echo tests completed'modified:.github/workflows/lint.yml+24 added
6 unmodified lines78910111213141516171819204 unmodified lines252627282930313233343536373839404 unmodified lines45464748495051525354555657584 unmodified lines63646566676869707172736 unmodified lines permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v1 with: allowed-endpoints: github.com:443 nodejs.org:443 registry.npmjs.org:443 - uses: actions/checkout@v2 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with:4 unmodified lines permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v1 with: allowed-endpoints: ghcr.io:443 github.com:443 pkg-containers.githubusercontent.com:443 nodejs.org:443 registry.npmjs.org:443 - uses: actions/checkout@v2 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with:4 unmodified lines permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v1 with: allowed-endpoints: github.com:443 nodejs.org:443 registry.npmjs.org:443 - uses: actions/checkout@v2 - uses: ljharb/actions/node/install@main name: 'nvm install ${{ matrix.node-version }} && npm install' with:4 unmodified lines permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v1 with: allowed-endpoints: github.com:443 - uses: actions/checkout@v2 - name: check tests filenames run: ./rename_test.sh --checkmodified:.github/workflows/rebase.yml+6 added
9 unmodified lines10111213141516171819202122239 unmodified lines
runs-on: ubuntu-latest
steps: - name: Harden Runner uses: step-security/harden-runner@v1 with: allowed-endpoints: api.github.com:443 github.com:443 - uses: actions/checkout@v2 - uses: ljharb/rebase@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}modified:.github/workflows/release.yml+6 added
6 unmodified lines789101112131415161718192012 unmodified lines6 unmodified lines permissions: contents: read runs-on: ubuntu-latest steps: - name: Harden Runner uses: step-security/harden-runner@v1 with: allowed-endpoints: github.com:443 registry.npmjs.org:443 - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: node-version: "14"12 unmodified linesmodified:.github/workflows/require-allow-edits.yml+5 added
9 unmodified lines10 11 runs-on: ubuntu-latest12 13 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 lines25 - shell: bash26 file: nvm-exec # only runs in bash27 28 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 lines47 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 lines10 11 runs-on: ubuntu-latest12 13 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