Skip to content

Commit f2894d2

Browse files
gautamdshethPowershellScriptserwinvanhunenreshmee011jennywu
authored
Merge to master (#4052)
* Minor documentation fixes (#3849) * Update Set-PnPTemporarilyDisableAppBar.md * Update Set-PnPTeamsTeamPicture.md * Update Set-PnPTeamsTeamArchivedState.md * Update Set-PnPTeamsTag.md --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * new cmdlet unlock-PnPSensitivityLabelEncryptedFile * Add ErrorMessage in batch delete progress * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Fix Copy-PnPList handling of lookup columns (#3870) Fix Copy-PnPList copying the list connected to the first lookup column instead of the specified list. Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Minor documentation fixes (#3853) * Added connection parameter description * Added connection parameter description * Update Set-PnPStructuralNavigationCacheWebState.md * Update Set-PnPStructuralNavigationCacheWebState.md * Update Set-PnPStructuralNavigationCacheWebState.md * Update Set-PnPStructuralNavigationCacheSiteState.md * Removed WhatIf parameter description * Update Set-PnPSiteVersionPolicy.md --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * add example (#3869) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Additional settings for SetTenantSite.cs : LoopDefaultSharingLinkRole, DefaultShareLinkScope, DefaultShareLinkRole, LoopDefaultSharingLinkScope (#3874) * New parameters added to Set tenant site * updae * Update to add additional properties * updated files --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Adding upload entire local folder to SharePoint Online into `Copy-PnPFolder` (#3850) * Adding functionality to allow a local folder with all its files and optionally recursed subfolders to be uploaded to SharePoint Online * Added PR reference * Typo fix * Adding verbose parameter * Fixing syntax issue * Added that empty folders will also be removed when providing -RemoveAfterCopy * Updated help text to reflect folders being deleted now as well --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Renaming Progress to Status as discussed * Added changelog entry * Adding changelog entry * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Fix exception in PnPConnectedCmdlet (#3885) Fix an NullDereferenceException happening when an exception is logged in PnPConnectedCmdlet but the connection passed through -Connection parameter is not the latest one. Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Minor Doc change: Add-PnPFolderUserSharingLink (#3881) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Adding support for vanity domain tenants in `Get-PnPSiteCollectionAppCatalog` and `Get-PnPTenantSite` (#3895) * Adding support for vanity domain tenants * Added changelog entry * Grammar fix --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Fix NullDereferenceException in Get-PnPUserProfileProperty (#3891) Fix NullDereferenceException happening in Get-PnPUserProfileProperty when the user profile doesn't exist, showing a better error message Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * replace ParentTerm by ParentTermId (#3890) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Nightly publish to PowerShell Gallery * Adding support for vanity domains to several cmdlets (#3898) * Updating cmdlets to use the TenantAdminUrl if possible before trying to guess the tenant admin URL * Adding PR reference * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Preparing for Managed Identity support in PnP Framework (#3857) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Fix destination folder definition in build process on Mac dev machines (#3907) * fix destination folder definition * fix destination folder definition --------- Co-authored-by: Tobias Maestrini <tobias@bee365.ch> * Update CHANGELOG.md * Minor documentation fixes (#3893) * Update Set-PnPSiteTemplateMetadata.md * Added Connection parameter description * Update Set-PnPSiteGroup.md * Update Set-PnPSiteDesign.md * Update Set-PnPSearchSettings.md * Update Set-PnPRoleDefinition.md * Update Set-PnPRetentionLabel.md * Removed common parameters * Added connection parameter description * Removed common parameters * Update Set-PnPPageWebPart.md * Removed [] from mandatory parameters --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Feature: bump MSAL.NET to latest version (#3905) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Nightly publish to PowerShell Gallery * Bump alpine linux version * Update release.yml * Create codeql.yml (#3915) * Update codeql.yml * Update codeql.yml * Update codeql.yml * Update codeql.yml * Update codeql.yml * Update codeql.yml * Update buildpr.yml * Nightly publish to PowerShell Gallery * Update hub.docker.md * Update pnppowershell.dockerFile * Update Publish-UnpublishedImage.ps1 * Update README.md * Update dev-containers.md * Update dev-containers.md * Update docker.md * Create scorecard.yml * Update scorecard.yml * Update scorecard.yml * Update scorecard.yml * Update scorecard.yml * Update scorecard.yml * Update scorecard.yml * Update scorecard.yml * Update README.md * Nightly publish to PowerShell Gallery * Update codeql.yml * Update closestaleissues.yml * Update cleanupnightlyreleases.yml * Update buildpr.yml * Update buildexternalhelp.yml * Update buildpr.yml * Update -Schema parameter documentation (#3923) Add missing Schema versions V202103 and V202209 to all -Schema parameters in different cmdlets Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update buildpr.yml * Update builddocsite.yml * Update checkdocumentationbuild.yml * Update nightlyrelease.yml * Update Publish-UnpublishedImage.ps1 * Update pnppowershell.dockerFile * Update Publish-UnpublishedImage.ps1 * Update release.yml * Update nightlyrelease.yml * Update nightlyrelease.yml * Update release.yml * Update LICENSE * Update shared.ps1 * Delete samples/Provisioning.SelfHostedWithAzureWebJob/Engine/nuget.exe * Update codeql.yml * Create SECURITY.md * Update codeql.yml * Update README.md * Nightly publish to PowerShell Gallery * Update README.md * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Updated spo-tenant with additional tenant settings (#3930) * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Update builddocsite.yml * Added Exchange Online properties of Microsoft 365 Groups (#3958) * Added implementation * Added PR reference * Fixing documentation build issue --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Allow to pass Group parameter to Remove-PnPGroupMember from pipeline (#3955) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Adds documentation for missing parameter MarkNewFilesSensitiveByDefault to set-spotenant (#3936) * Updated spo-tenant with additional tenant settings * Update doc to include MarkNewFilesSensitiveByDefault * remove a parameter --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update SiteIDtoURL.ps1 MFA, Script Execution * Update version.txt * Nightly publish to PowerShell Gallery * Update builddocsite.yml * closes #3945 (#3947) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Fixed some grammar issues (#3960) * Fix grammar issues * added to changelog * reviewer comments --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Bump MSAL.NET to latest * Change runner back to linux * Amend to return additional parameters (#3948) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * New cmdlet for getcontainerType and minor changes to docs (#3946) * Update CHANGELOG.md * Allow to pass empty values to Set-PnPTenantCdnPolicy (#3937) Change Set-PnPTenantCdnPolicy to allow PolicyValue to be an empty string or $null, while still being mandatory. Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Update Disable-PnPTenantServicePrincipal.md (#3975) Instead of enabling this cmdlet should disable the PnPTenantServicePrincipal Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Add additional settings RecycleBinRetentionPeriod,OneDriveBlockGuestsAsSiteAdmin,OneDriveDefaultShareLinkRole,OneDriveDefaultShareLinkScope,OneDriveDefaultLinkToExistingAccess (#3977) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Improve security * Nightly publish to PowerShell Gallery * Files for new cmdlets Set-PnPTenantRestrictedSearchMode and GetTenantRestrictedSearchMode.cs (#3976) * Files for rss * update to executequeryretry * add client --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Updated for MacOS * Additional tenant settings from api/SPOInternalUseOnly.TenantAdminSettings (#3902) * internal settings files * Added additional clarification * update get-PnPTenantInternalSettings to get-PnPTenantInternalSetting * Update to use "System.Text.Json;" and remove other references. --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Nightly publish to PowerShell Gallery * Remove obsolete UserVoiceForFeedbackEnabled parameter in SetTenant.cs (#3985) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Update CHANGELOG.md * chore: Update Set-PnPHomeSite.md and SetHomeSite.cs (#3986) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Update PnPTenantSite to include additional properties and their setters (#3987) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Update CHANGELOG.md * feat: Add ExecuteQueryRetry to Admin commands for improved reliability (#3988) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Nightly publish to PowerShell Gallery * cmdlet to add home site (#3989) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Added new cmdlet to return modern page scheduling enabled status * Moved cmdlets to Pages namespace * Update CHANGELOG.md * feat: Add SortByStorage parameter to GetContainer cmdlet & fix pagination (#3990) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * feat: Include sensitivity labels in Get-PnPMicrosoft365Group command (#3991) * feat: Update Microsoft365Group commands to include IncludeSensitivityLabels parameter * feat: Include sensitivity labels in Get-PnPMicrosoft365Group command --------- Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Updated contributors * Remove uservoice property since it is deprecated * Update CHANGELOG.md * Trying macos runner * Update buildpr.yml * Fix New-PnPTeamsTeam sometimes "Conflict (409): Team already exists" (#3992) Handle "Conflict (409): Team already exists" error as a case of "a previous teamify call succeeded". Fix #3964 Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Feature: added new cmdlet Get-PnPFileSensitivityLabelInfo (#3994) * Feature: added new cmdlet Get-PnPFileSensitivityLabelInfo * Update SPOFileSensitivityLabelInfo.cs --------- Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * chore: Update Get-PnPHomeSite to include Viva Connections functionality (#4002) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Updated permissions according to findings shared in #277 * Nightly publish to PowerShell Gallery * Removing faulty brackets * Fixing update done through #3958 (#4013) * Adding additional information, removing alias as it works inversed from the original cmdlet name, only kept the Graph name and ditched the Exchange Online name * Added code to distinguish the type of token being used (Delegate vs AppOnly) and using it to show a warning if properties are being set with the wrong token type * Renaming method as this makes more sense --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update SetSiteVersionPolicy.cs (#4005) Changed "Progress" to "Status" as the cmdlet has been renamed as well. Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Security: Bump MSAL.NET to latest (#4018) * Nightly publish to PowerShell Gallery * Updated synopsis for Graph API limitations Added a comment in the Synopsis section for Graph API limitations where some `-Type` values are not configurable (PowerBI). * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Updated documentation for Set-PnPFolderPermission (#4025) Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update Set-PnPList.md (#4020) See #3783 where an issue is described when this feature is not activated. So maybe this PR makes the documentation more clear. Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * New cmdlet for Get-PnPTenantRestrictedSearchAllowedList (#3997) * new cmdlet * correct space * add documentation --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Feature #4028 : return EnableAIPIntegation in Get-PnPTenant cmdlet (#4030) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Fix #3908: improve connection validation in ConnectOnline.cs (#4031) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Adding `-IsSharePointAddInsDisabled` to `Set-PnPTenant` (#4032) * Added -IsSharePointAddInsDisabled to Set-PnPTenant * Added PR reference * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Fix error handling in Remove-PnPTeamsChannel (#4036) Fix Remove-PnPTeamsChannel error handling mismatch between "Team not found", "Channel not found" and no error. * Update CHANGELOG.md * More settings related to version trim ,ReadOnlyForUnmanagedDevices and RestrictContentOrgWideSearch (#4024) * More settings related to version trim ,ReadOnlyForUnmanagedDevices and RestrictContentOrgWideSearch * remove reference to forms * remove version trim settings --------- Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Update Copy-PnPFile.md Removed the comment saying we couldn't copy files between SPO and ODFB. We've created this functionality in previous versions (see issue #1720). * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Nightly publish to PowerShell Gallery * Fix #4041 : issue retrieving loop sharing information (#4047) Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> * Update AddListFoldersToSiteTemplate.cs (#3918) Co-authored-by: Maxime HAZEBROUCQ (Ext) <maxime.hazebroucq@ext.hermes.com> Co-authored-by: Gautam Sheth <gautamdsheth@outlook.com> * Update CHANGELOG.md * Nightly publish to PowerShell Gallery * Bump references for 2.5 release --------- Co-authored-by: Arleta Wanat <42035526+PowershellScripts@users.noreply.github.com> Co-authored-by: erwinvanhunen <erwinvanhunen@users.noreply.github.com> Co-authored-by: reshmee011 <reshmee011@gmail.com> Co-authored-by: jennywu <jennywu@microsoft.com_odspmdb> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com> Co-authored-by: Aimery Thomas <7100077+a1mery@users.noreply.github.com> Co-authored-by: Koen Zomers <koen@zomers.eu> Co-authored-by: WCONFR <68463689+WCONFR@users.noreply.github.com> Co-authored-by: Tobias Maestrini <69770609+tmaestrini@users.noreply.github.com> Co-authored-by: Tobias Maestrini <tobias@bee365.ch> Co-authored-by: Gautam Sheth <gautam.sheth@staffbase.com> Co-authored-by: gautamdsheth <gautamdsheth@users.noreply.github.com> Co-authored-by: Sam Larson (Microsoft) <salarson@microsoft.com> Co-authored-by: Christian Veenhuis <124370897+ChVeen@users.noreply.github.com> Co-authored-by: Mark Gort <52573368+markgort86@users.noreply.github.com> Co-authored-by: Erwin van Hunen <erwin.van.hunen@outlook.com> Co-authored-by: Marc Studer <31045631+Studermarc@users.noreply.github.com> Co-authored-by: Veronique Lengelle <25181757+veronicageek@users.noreply.github.com> Co-authored-by: Paolo Pialorsi <paolo@pialorsi.com> Co-authored-by: mhazebroucq <mhazebroucq@gmail.com> Co-authored-by: Maxime HAZEBROUCQ (Ext) <maxime.hazebroucq@ext.hermes.com>
1 parent fb0ccf2 commit f2894d2

File tree

201 files changed

+10348
-5733
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

201 files changed

+10348
-5733
lines changed

.github/workflows/builddocsite.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
workflow_dispatch:
55
schedule:
66
- cron: '0 2 * * *'
7+
8+
permissions: read-all
9+
710
jobs:
811
documentation:
912
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1015
steps:
1116
- name: Wait for actions to finish
1217
uses: softprops/turnstyle@v1

.github/workflows/buildexternalhelp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- dev
88
paths: 'documentation/**'
99

10+
permissions: read-all
11+
1012
jobs:
1113
build:
1214

.github/workflows/buildpr.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ on:
77
- dev
88
paths:
99
- 'src/**'
10-
#push:
11-
# branches:
12-
# - dev
13-
# paths:
14-
# - 'src/**'
10+
11+
permissions: read-all
12+
1513
jobs:
1614
build_dev_branch:
17-
runs-on: ubuntu-latest
15+
runs-on: macos-latest
1816
steps:
1917
- name: Checkout PnP.Framework
2018
uses: actions/checkout@v4
@@ -55,5 +53,5 @@ jobs:
5553
run: dotnet restore -p:PnPFrameworkPath="..\..\..\pnpframework\src\lib\" -p:PnPCoreSdkPath="..\..\..\pnpcore\src\sdk\"
5654
working-directory: powershell/src
5755
- name: Build PnP.PowerShell
58-
run: dotnet build --configuration Debug --no-restore -p:PnPFrameworkPath="/home/runner/work/powershell/powershell/pnpframework/src/lib/" -p:PnPCoreSdkPath="/home/runner/work/powershell/powershell/pnpcore/src/sdk/"
56+
run: dotnet build --configuration Debug --no-restore -p:PnPFrameworkPath="/Users/runner/work/powershell/powershell/pnpframework/src/lib/" -p:PnPCoreSdkPath="/Users/runner/work/powershell/powershell/pnpcore/src/sdk/"
5957
working-directory: powershell/src

.github/workflows/checkdocumentationbuild.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
paths:
88
- 'documentation/**'
99
- 'pages/**'
10+
11+
permissions: read-all
12+
1013
jobs:
1114
docfx:
1215

.github/workflows/cleanupnightlyreleases.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
workflow_dispatch:
55
schedule:
66
- cron: '0 3 * * *'
7+
8+
permissions: read-all
79

810
jobs:
911
# This workflow contains a single job called "cleanup"

.github/workflows/closestaleissues.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
schedule:
44
- cron: "30 1 * * *"
55

6+
permissions: read-all
7+
68
jobs:
79
stale:
810
runs-on: ubuntu-latest

.github/workflows/codeql.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ dev ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ dev ]
20+
schedule:
21+
- cron: '36 19 * * 2'
22+
23+
permissions: read-all
24+
25+
26+
jobs:
27+
analyze:
28+
name: Analyze
29+
runs-on: windows-latest
30+
permissions:
31+
security-events: write
32+
contents: read
33+
34+
strategy:
35+
fail-fast: false
36+
matrix:
37+
language: [ 'csharp' ]
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v4
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v3
46+
with:
47+
languages: ${{ matrix.language }}
48+
49+
- name: Setup .NET Core
50+
uses: actions/setup-dotnet@v4
51+
with:
52+
dotnet-version: |
53+
6.x
54+
7.x
55+
- name: Install dependencies
56+
run: dotnet restore
57+
working-directory: src/Commands
58+
- name: Build ⚙
59+
run: dotnet build PnP.PowerShell.csproj --nologo --configuration debug --no-incremental --verbosity diagnostic --disable-build-servers --force
60+
working-directory: src/Commands
61+
- name: Perform CodeQL Analysis
62+
uses: github/codeql-action/analyze@v3

.github/workflows/nightlyrelease.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
workflow_dispatch:
55
schedule:
66
- cron: '30 2 * * *'
7+
8+
permissions: read-all
9+
710
jobs:
811
build:
912

@@ -73,14 +76,14 @@ jobs:
7376
- name: Build an image
7477
run: |
7578
VERSION=$(cat ./version.txt)-nightly
76-
docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=alpine-3.14" --build-arg "INSTALL_USER=root" --build-arg "SKIP_PUBLISHER_CHECK=False" ./docker -f ./docker/pnppowershell.dockerFile --tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.14;
79+
docker build --build-arg "PNP_MODULE_VERSION=$VERSION" --build-arg "BASE_IMAGE_SUFFIX=alpine-3.17" --build-arg "INSTALL_USER=root" --build-arg "SKIP_PUBLISHER_CHECK=False" ./docker -f ./docker/pnppowershell.dockerFile --tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.17;
7780
- name: Tag the image
7881
run: |
7982
VERSION=$(cat ./version.txt)-nightly
80-
docker image tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.14 ${{ secrets.DOCKER_ORG }}/powershell:nightly
83+
docker image tag ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.17 ${{ secrets.DOCKER_ORG }}/powershell:nightly
8184
- name: Push the image
8285
run: |
8386
VERSION=$(cat ./version.txt)-nightly
8487
docker login -u ${{ secrets.DOCKER_USERNAME }} -p '${{ secrets.DOCKER_PASSWORD }}'
85-
docker push ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.14
88+
docker push ${{ secrets.DOCKER_ORG }}/powershell:$VERSION-alpine-3.17
8689
docker push ${{ secrets.DOCKER_ORG }}/powershell:nightly

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
workflow_dispatch:
55
schedule:
66
- cron: '30 3 * * *'
7+
8+
permissions: read-all
9+
710
jobs:
811
publish-docker-windows-2022:
912
runs-on: windows-2022
@@ -31,4 +34,4 @@ jobs:
3134
shell: pwsh
3235
run: |
3336
$securedPassword = ConvertTo-SecureString "${{ secrets.DOCKER_PASSWORD }}" -AsPlainText -Force
34-
./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell ${{ secrets.DOCKER_USERNAME }} ${{ secrets.DOCKER_ORG }} powershell $securedPassword "root" $false "alpine-3.14"
37+
./docker/Publish-UnpublishedImage.ps1 PnP.PowerShell ${{ secrets.DOCKER_USERNAME }} ${{ secrets.DOCKER_ORG }} powershell $securedPassword "root" $false "alpine-3.17"

.github/workflows/scorecard.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Scorecard analysis workflow
2+
on:
3+
push:
4+
# Only the default branch is supported.
5+
branches:
6+
- dev
7+
schedule:
8+
# Weekly on Saturdays.
9+
- cron: '30 1 * * 6'
10+
11+
permissions: read-all
12+
13+
jobs:
14+
analysis:
15+
name: Scorecard analysis
16+
runs-on: ubuntu-latest
17+
permissions:
18+
# Needed for Code scanning upload
19+
security-events: write
20+
# Needed for GitHub OIDC token if publish_results is true
21+
id-token: write
22+
23+
steps:
24+
- name: "Checkout code"
25+
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
26+
with:
27+
ref: ${{ github.event.inputs.branch }}
28+
path: ${{ github.sha }}
29+
token: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: "Run analysis"
32+
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
33+
with:
34+
results_file: results.sarif
35+
results_format: sarif
36+
# Scorecard team runs a weekly scan of public GitHub repos,
37+
# see https://github.com/ossf/scorecard#public-data.
38+
# Setting `publish_results: true` helps us scale by leveraging your workflow to
39+
# extract the results instead of relying on our own infrastructure to run scans.
40+
# And it's free for you!
41+
publish_results: true
42+
43+
# Upload the results as artifacts (optional). Commenting out will disable
44+
# uploads of run results in SARIF format to the repository Actions tab.
45+
# https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
46+
- name: "Upload artifact"
47+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
48+
with:
49+
name: SARIF file
50+
path: results.sarif
51+
retention-days: 5
52+
53+
# Upload the results to GitHub's code scanning dashboard (optional).
54+
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
55+
- name: "Upload to code-scanning"
56+
uses: github/codeql-action/upload-sarif@8f596b4ae3cb3c588a5c46780b86dd53fef16c52 # v3.25.2
57+
with:
58+
sarif_file: results.sarif

0 commit comments

Comments
 (0)