Skip to content
Myr

[actions] improve default action permissions

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

authored by Jordan Harband · committed by Jordan Harband · parent 29dce5e · Browse files · 9 files+29 added−16 removed
This commit

State

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

Diff stats

9 files+29 added−16 removed

  • other:+29 added−16 removed

9 files+29 added−16 removed

modified:.github/workflows/latest-npm.yml+3 added
modified:.github/workflows/lint.yml+3 added-8 removed
modified:.github/workflows/rebase.yml+3 added
modified:.github/workflows/release.yml+3 added-2 removed
1name: 'Tests: release process'23on: [pull_request, push]45permissions:6 contents: read78jobs:9 release:7 permissions:8 contents: read10 runs-on: ubuntu-latest11 steps:12 - name: Harden Runner13 uses: step-security/harden-runner@v2
23 unmodified lines
modified:.github/workflows/require-allow-edits.yml+3 added
1name: Require “Allow Edits”23on: [pull_request_target]45permissions:6 contents: read78jobs:9 _:10 permissions:11 pull-requests: read
13 unmodified lines
modified:.github/workflows/shellcheck.yml+3 added-6 removed
1name: 'Tests: shellcheck'23on: [pull_request, push]45permissions:6 contents: read78jobs:9 shellcheck_matrix:7 permissions:8 contents: read10 runs-on: ubuntu-latest11 strategy:12 fail-fast: false13 matrix:
38 unmodified lines
52 contents: none53 needs: [shellcheck_matrix]54 runs-on: ubuntu-latest55 steps:55 - name: Harden Runner56 uses: step-security/harden-runner@v257 with:58 egress-policy: block56 - run: true
modified:.github/workflows/tests.yml+5 added
1name: urchin tests23on: [push]45permissions:6 contents: read78jobs:9 tests:10 permissions:11 contents: write
39 unmodified lines
51 - run: env52 - run: make TERM=xterm-256color TEST_SUITE="${{ matrix.suite }}" SHELL="${{ matrix.shell }}" URCHIN="$(npx which urchin)" test-${{ matrix.shell }}5354 nvm:55 permissions:56 contents: none57 name: 'all test suites, all shells'58 needs: [tests]59 runs-on: ubuntu-latest60 steps:
1 unmodified line
modified:.github/workflows/toc.yml+3 added
1name: update readme TOC23on: [push]45permissions:6 contents: read78jobs:9 _:10 permissions:11 contents: write
29 unmodified lines
modified:.github/workflows/windows-npm.yml+3 added
1name: 'Tests on Windows: `nvm install`'23on: [pull_request, push]45permissions:6 contents: read78env:9 NVM_INSTALL_GITHUB_REPO: ${{ github.repository }}10 NVM_INSTALL_VERSION: ${{ github.sha }}11
182 unmodified lines