Skip to content

Commit

Permalink
Merge branch 'createPublishPipeline' of https://github.com/microsoft/…
Browse files Browse the repository at this point in the history
…winget-dsc into createPublishPipeline
  • Loading branch information
ryfu-msft committed Nov 13, 2024
2 parents e894dd3 + e6ef170 commit f8a7c69
Show file tree
Hide file tree
Showing 12 changed files with 119 additions and 32 deletions.
1 change: 1 addition & 0 deletions .github/actions/spelling/advice.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<details><summary>If the flagged items are :exploding_head: false positives</summary>

If items relate to a ...

* binary file (or some other file you wouldn't want to check at all).

Please add a file path to the `excludes.txt` file matching the containing file.
Expand Down
1 change: 1 addition & 0 deletions .github/actions/spelling/expect/software.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ cspell
NUnit
reportgenerator
Toolpackage
markdownlint
35 changes: 35 additions & 0 deletions .github/workflows/markdownLint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Markdown Lint

on:
push:
branches:
- '**'
- '!main'
tags-ignore:
- '**'
pull_request_target:
branches:
- '**'
tags-ignore:
- '**'
types:
- 'opened'
- 'reopened'
- 'synchronize'

jobs:
lint:
name: Check Markdown linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: tj-actions/changed-files@v45
id: changed-files
with:
files: '**/*.md'
- uses: DavidAnson/markdownlint-cli2-action@v17
if: steps.changed-files.outputs.any_changed == 'true'
with:
globs: ${{ steps.changed-files.outputs.all_changed_files }}
11 changes: 11 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
globs:
- "**/*.md"

noProgress: true

# Show found files on stdout (only valid at root)
showFound: true

ignores:
- "PRIVACY.md"
- ".github/*.md"
35 changes: 35 additions & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Default state for all rules
default: true

# Path to configuration file to extend
extends: null

MD007:
# Spaces for indent
indent: 4
# Whether to indent the first level of the list
start_indented: false
# Spaces for first level indent (when start_indented is set)
start_indent: 2

# MD013/line-length : Line length : https://github.com/DavidAnson/markdownlint/blob/v0.32.1/doc/md013.md
MD013:
# Number of characters
line_length: 500
# Number of characters for headings
heading_line_length: 120
# Number of characters for code blocks
code_block_line_length: 500
# Include code blocks
code_blocks: true
# Include tables
tables: true
# Include headings
headings: true
# Strict length checking
strict: false
# Stern length checking
stern: false

# MD025/single-title : Help examples contain metadata
MD025: false
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"recommendations": [
"redhat.vscode-yaml",
"EditorConfig.EditorConfig",
"ms-vscode.powershell"
"ms-vscode.powershell",
"davidanson.vscode-markdownlint"
]
}
5 changes: 4 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ The Windows Package Manager team is active in this GitHub Repository. In fact, w

When the team finds issues we file them in the repository. When we propose new ideas or think-up new features, we file new feature requests. When we work on fixes or features, we create branches and work on those improvements. And when PRs are reviewed, we review in public - including all the good, the bad, and the ugly parts.

The point of doing all this work in public is to ensure that we are holding ourselves to a high degree of transparency, and so that the community sees that we apply the same processes and hold ourselves to the same quality-bar as we do to community-submitted issues and PRs. We also want to make sure that we expose our team culture and "tribal knowledge" that is inherent in any closely-knit team, which often contains considerable value to those new to the project who are trying to figure out "why the heck does this thing look/work like this???"
The point of doing all this work in public is to ensure that we are holding ourselves to a high degree of transparency, and so that the community sees that we apply the same processes and hold ourselves to the same quality-bar as we do to community-submitted issues and PRs.

We also want to make sure that we expose our team culture and "tribal knowledge" that is inherent in any closely-knit team, which often contains considerable value to those new to the project who are trying to figure out "why the heck does this thing look/work like this???"

### Repository Bot

Expand All @@ -21,6 +23,7 @@ We drive the bot by tagging issues with specific labels which cause the bot engi
Therefore, if you do file issues, or create PRs, please keep an eye on your GitHub notifications. If you do not respond to requests for information, your issues/PRs may be closed automatically.

---

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.** Instead, please report them to the Microsoft Security Response Center (MSRC). See [SECURITY.md](./SECURITY.md) for more information.
Expand Down
16 changes: 8 additions & 8 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.9 BLOCK -->

## Security
# Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin).

Expand All @@ -18,13 +18,13 @@ You should receive a response within 24 hours. If for some reason you do not, pl

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

Expand Down
2 changes: 1 addition & 1 deletion doc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ms.topic: overview

WinGet Desired State Configuration (DSC) consist out of PowerShell class-based DSC resources targeting PowerShell 7.2+. Each module exposes classes that help you configure your machine in the desired state. The DSC resources is developed around the `Get-Test-Set` methods. If applicable, the team attempts to implement new methods known to newer versions of DSC.

> To learn more about the newer DSC version, check out https://learn.microsoft.com/en-us/powershell/dsc/overview?view=dsc-3.0
> To learn more about the newer DSC version, check out <https://learn.microsoft.com/en-us/powershell/dsc/overview?view=dsc-3.0>
## Getting started

Expand Down
16 changes: 8 additions & 8 deletions resources/Help/Microsoft.Dotnet.Dsc/DotNetToolPackage.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ The `DotNetToolPackage` DSC Resource allows you to install, update, and uninstal

## PARAMETERS

**Parameter**|**Attribute**|**DataType**|**Description**|**Allowed Values**
:-----|:-----|:-----|:-----|:-----
`PackageId`|Key|String|The ID of the .NET tool package to manage.|N/A
`Version`|Optional|String|The version of the .NET tool package to install. If not specified, the latest version will be installed.|N/A
`Commands`|Optional|String[]|An array of commands provided by the .NET tool package.|N/A
`Prerelease`|Optional|Boolean|Indicates whether to include prerelease versions of the .NET tool package. The default value is `$false`.|`$true`, `$false`
`ToolPathDirectory`|Optional|String|The directory where the .NET tool package will be installed. If not specified, the package will be installed globally.| Use custom directory when you have `env:Path` set on that directory
`Exist`|Optional|Boolean|Indicates whether the package should exist. Defaults to `$true`.| `$true` or `$false`
| **Parameter** | **Attribute** | **DataType** | **Description** | **Allowed Values** |
| ------------------- | ------------- | ------------ | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| `PackageId` | Key | String | The ID of the .NET tool package to manage. | N/A |
| `Version` | Optional | String | The version of the .NET tool package to install. If not specified, the latest version will be installed. | N/A |
| `Commands` | Optional | String[] | An array of commands provided by the .NET tool package. | N/A |
| `Prerelease` | Optional | Boolean | Indicates whether to include prerelease versions of the .NET tool package. The default value is `$false`. | `$true`, `$false` |
| `ToolPathDirectory` | Optional | String | The directory where the .NET tool package will be installed. If not specified, the package will be installed globally. | Use custom directory when you have |
| `Exist` | Optional | Boolean | Indicates whether the package should exist. Defaults to `$true`. | `$true` or `$false` |

## EXAMPLES

Expand Down
12 changes: 6 additions & 6 deletions resources/Help/Microsoft.VSCode.Dsc/VSCodeExtension.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ The `VSCodeExtension` DSC Resource allows you to install, update, and remove Vis

## PARAMETERS

**Parameter**|**Attribute**|**DataType**|**Description**|**Allowed Values**
:-----|:-----|:-----|:-----|:-----
`Name`|Key|String|The name of the Visual Studio Code extension to manage.|To find extensions in VSCode, check out: https://code.visualstudio.com/docs/editor/extension-marketplace#_find-and-install-an-extension
`Version`|Optional|String|The version of the Visual Studio Code extension to install. If not specified, the latest version will be installed.| For example: `1.0.0`
`Exist`|Optional|Boolean|Indicates whether the extension should exist. The default value is `$true`.|`$true`, `$false`
`Insiders`|Optional|Boolean|Indicates whether to manage the extension for the Insiders version of Visual Studio Code. The default value is `$false`.|`$true`, `$false`
| **Parameter** | **Attribute** | **DataType** | **Description** | **Allowed Values** |
| ------------- | ------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- |
| `Name` | Key | String | The name of the Visual Studio Code extension to manage. | To find extensions in VSCode, check out: <https://code.visualstudio.com/docs/editor/extension-marketplace#_find-and-install-an-extension> |
| `Version` | Optional | String | The version of the Visual Studio Code extension to install. If not specified, the latest version will be installed. | For example: `1.0.0` |
| `Exist` | Optional | Boolean | Indicates whether the extension should exist. The default value is `$true`. | `$true`, `$false` |
| `Insiders` | Optional | Boolean | Indicates whether to manage the extension for the Insiders version of Visual Studio Code. The default value is `$false`. | `$true`, `$false` |

## EXAMPLES

Expand Down
14 changes: 7 additions & 7 deletions resources/Help/PythonPip3Dsc/Pip3Package.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ The `Pip3Package` DSC Resource allows you to install, update, and uninstall Pyth

## PARAMETERS

**Parameter**|**Attribute**|**DataType**|**Description**|**Allowed Values**
:-----|:-----|:-----|:-----|:-----
`SID`|Key, Mandatory|String|The security identifier. This is a key property and should not be set manually.|
`Exist`|Optional|Boolean|Indicates whether the package should exist. Defaults to `$true`.| `$true` or `$false`
`Package`|Mandatory|String|The name of the Python package to manage. This is a mandatory property.| For a list of Python packages, see https://pypi.org/.
`Version`|Optional|String|The version of the Python package to manage. If not specified, the latest version will be used.| For example: `5.1.2`
`Arguments`|Optional|String|Additional arguments to pass to pip3.| Add arguments like `--debug`
| **Parameter** | **Attribute** | **DataType** | **Description** | **Allowed Values** |
| ------------- | -------------- | ------------ | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| `SID` | Key, Mandatory | String | The security identifier. This is a key property and should not be set manually. | pack have been installed. |
| `Exist` | Optional | Boolean | Indicates whether the package should exist. Defaults to `$true`. | `$true` or `$false` |
| `Package` | Mandatory | String | The name of the Python package to manage. This is a mandatory property. | For a list of Python packages, see <https://pypi.org> |
| `Version` | Optional | String | The version of the Python package to manage. If not specified, the latest version will be used. | For example: `5.1.2` |
| `Arguments` | Optional | String | Additional arguments to pass to pip3. | Add arguments like `--debug` |

## EXAMPLES

Expand Down

0 comments on commit f8a7c69

Please sign in to comment.