[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
Provenance
- Commit
c20db2a- Tree
f6d1c7c- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
29dce5e
9 files changed+29 added−16 removed
modified:.github/workflows/latest-npm.yml+3 added
123456789101170 unmodified linesname: 'Tests: `nvm install-latest-npm`'
on: [pull_request, push]
permissions: contents: read
jobs: matrix: runs-on: ubuntu-latest outputs:70 unmodified linesmodified:.github/workflows/lint.yml+3 added-8 removed
12345678978101112139 unmodified lines2324252626272728293011 unmodified lines424344454748464748499 unmodified lines596061626667636465666 unmodified linesname: 'Tests: linting'
on: [pull_request, push]
permissions: contents: read
jobs: eclint: permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v2 with:9 unmodified lines node-version: 'lts/*' - run: npm run eclint
dockerfile_lint: permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v2 with:11 unmodified lines node-version: 'lts/*' - run: npm run dockerfile_lint
doctoc: permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v2 with:9 unmodified lines node-version: 'lts/*' - run: npm run doctoc:check
test_naming: permissions: contents: read runs-on: ubuntu-latest steps: - uses: step-security/harden-runner@v2 with:6 unmodified linesmodified:.github/workflows/rebase.yml+3 added
123456789101115 unmodified linesname: Automatic Rebase
on: [pull_request_target]
permissions: contents: read
jobs: _: permissions: contents: write15 unmodified linesmodified:.github/workflows/release.yml+3 added-2 removed
1 name: 'Tests: release process'2 3 on: [pull_request, push]4 5+permissions:6+ contents: read7+8 jobs:9 release:7- permissions:8- contents: read10 runs-on: ubuntu-latest11 steps:12 - name: Harden Runner13 uses: step-security/harden-runner@v223 unmodified linesmodified:.github/workflows/require-allow-edits.yml+3 added
1 name: Require “Allow Edits”2 3 on: [pull_request_target]4 5+permissions:6+ contents: read7+8 jobs:9 _:10 permissions:11 pull-requests: read13 unmodified linesmodified:.github/workflows/shellcheck.yml+3 added-6 removed
1 name: 'Tests: shellcheck'2 3 on: [pull_request, push]4 5+permissions:6+ contents: read7+8 jobs:9 shellcheck_matrix:7- permissions:8- contents: read10 runs-on: ubuntu-latest11 strategy:12 fail-fast: false13 matrix:38 unmodified lines52 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: truemodified:.github/workflows/tests.yml+5 added
1 name: urchin tests2 3 on: [push]4 5+permissions:6+ contents: read7+8 jobs:9 tests:10 permissions:11 contents: write39 unmodified lines51 - run: env52 - run: make TERM=xterm-256color TEST_SUITE="${{ matrix.suite }}" SHELL="${{ matrix.shell }}" URCHIN="$(npx which urchin)" test-${{ matrix.shell }}53 54 nvm:55+ permissions:56+ contents: none57 name: 'all test suites, all shells'58 needs: [tests]59 runs-on: ubuntu-latest60 steps:1 unmodified linemodified:.github/workflows/toc.yml+3 added
1 name: update readme TOC2 3 on: [push]4 5+permissions:6+ contents: read7+8 jobs:9 _:10 permissions:11 contents: write29 unmodified linesmodified:.github/workflows/windows-npm.yml+3 added
1 name: 'Tests on Windows: `nvm install`'2 3 on: [pull_request, push]4 5+permissions:6+ contents: read7+8 env:9 NVM_INSTALL_GITHUB_REPO: ${{ github.repository }}10 NVM_INSTALL_VERSION: ${{ github.sha }}11 182 unmodified lines