Skip to content

Commit

Permalink
Merge pull request #11 from johnduprey/dev
Browse files Browse the repository at this point in the history
Update check_and_publish.yml
  • Loading branch information
JohnDuprey authored Nov 29, 2022
2 parents 7113678 + 20f04e3 commit 2afa90a
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/check_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,17 @@ on:
branches: [main]

jobs:
build:
name: PSScriptAnalyzer
checkpublish:
name: Check and Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Run PSScriptAnalyzer
uses: microsoft/psscriptanalyzer-action@2044ae068e37d0161fa2127de04c19633882f061
uses: microsoft/psscriptanalyzer-action@v1.0
with:
# Check https://github.com/microsoft/action-psscriptanalyzer for more info about the options.
# The below set up runs PSScriptAnalyzer to your entire repository and runs some basic security rules.
path: .\BitwardenPS
recurse: true
# Include your own basic security rules. Removing this option will run all the rules
includeRule: '"PSAvoidGlobalAliases", "PSAvoidUsingConvertToSecureStringWithPlainText"'
output: results.sarif

Expand All @@ -35,7 +32,7 @@ jobs:
id: Build-Module
with:
script: |
Install-Module ModuleBuilder
Install-Module ModuleBuilder -Force
Build-Module
- name: Publish PowerShell Module
Expand Down

0 comments on commit 2afa90a

Please sign in to comment.