Skip to content

Commit

Permalink
Try to add PSScriptAnalyzer workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Jan 3, 2023
1 parent 69064bc commit e5b09fc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/psscriptanalyzer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: PSScriptAnalyzer

on:
push:
branches: [ master ]
paths:
- '**.ps1'
pull_request:
branches: [ master ]
paths:
- '**.ps1'

jobs:
analyze:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: microsoft/[email protected]
with:
recurse: true

- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
category: psscriptanalyzer
2 changes: 0 additions & 2 deletions experimental/ChangeMicrosoftEdgeTheme.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# TODO Is there a way to make the theme change take affect immediately when Edge is open?

param (
[Parameter(Mandatory=$true)][int]$daySegment2, # 0 = Day, 1 = Night
[Parameter(Mandatory=$true)][int]$daySegment4, # -1 = N/A, 0 = Sunrise, 1 = Day, 2 = Sunset, 3 = Night
Expand Down
2 changes: 1 addition & 1 deletion stable/ChangeDisplayBrightness.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WARN Requires hardware that supports DDC/CI (the ability to change display brightness in Windows)
# NOTE: Requires hardware that supports DDC/CI (the ability to change display brightness in Windows)

param (
[Parameter(Mandatory=$true)][int]$daySegment2, # 0 = Day, 1 = Night
Expand Down

0 comments on commit e5b09fc

Please sign in to comment.