Updated workflows with permission restrictions (#1267)

* Updated workflows

* Remove docs verifier for now
This commit is contained in:
Andy (Steve) De George
2022-01-07 13:34:04 -08:00
committed by GitHub
parent 50d7e1b38f
commit 97abdbc51c
5 changed files with 18 additions and 25 deletions
+5 -1
View File
@@ -4,7 +4,7 @@ name: 'target supported version'
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request event based on a schedule
# Triggers the workflow on push or pull request events but only for the default branch
schedule:
- cron: '0 0 1 * *'
workflow_dispatch:
@@ -20,6 +20,9 @@ jobs:
version-sweep:
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
@@ -31,6 +34,7 @@ jobs:
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo 'Reason: ${{ github.event.inputs.reason }}'
# Start the .NET version sweeper, scan projects/slns for non-LTS (or currrent) versions
- name: .NET version sweeper
id: dotnet-version-sweeper