Skip to content
Myr

[actions] restrict permissions for `GITHUB_TOKEN`

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

authored by Step Security · committed by Jordan Harband · parent 2dad045 · Browse files · 8 files+32 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

8 files+32 added−0 removed

  • other:+32 added−0 removed

8 files+32 added−0 removed

modified:.github/workflows/latest-npm.yml+4 added
modified:.github/workflows/lint.yml+8 added
modified:.github/workflows/rebase.yml+2 added
modified:.github/workflows/release.yml+2 added
modified:.github/workflows/require-allow-edits.yml+2 added
modified:.github/workflows/shellcheck.yml+4 added
modified:.github/workflows/toc.yml+2 added
2 unmodified lines
3on: [push]45jobs:6 _:7 permissions:8 contents: write9 name: "update readme TOC"1011 runs-on: ubuntu-latest12
19 unmodified lines
modified:.github/workflows/windows-npm.yml+8 added
7 unmodified lines
89jobs:10 msys_fail_install:11 # Default installation does not work due to npm_config_prefix set to C:\npm\prefix12 permissions:13 contents: none14 name: 'MSYS fail prefix nvm install'15 runs-on: windows-latest16 steps:17 - name: Retrieve nvm
3 unmodified lines
21 . "$HOME/.nvm/nvm.sh"22 ! nvm install --lts2324 msys_matrix:25 permissions:26 contents: none27 name: 'MSYS nvm install'28 runs-on: windows-latest29 strategy:30 fail-fast: false
15 unmodified lines
46 . "$HOME/.nvm/nvm.sh"47 nvm install ${{ matrix.npm-node-version }}4849 cygwin_matrix:50 permissions:51 contents: none52 name: 'Cygwin nvm install'53 runs-on: windows-latest54 steps:55 - name: Install Cygwin
60 unmodified lines
116 . "$HOME/.nvm/nvm.sh"117 nvm install ${{ matrix.npm-node-version }}118119 nvm_windows:120 permissions:121 contents: none122 needs: [wsl_matrix, cygwin_matrix, msys_matrix, msys_fail_install]123 runs-on: ubuntu-latest124 steps:125 - run: 'echo tests completed'