diff --git a/.github/ACCESSIBILITY.md b/.github/ACCESSIBILITY.md new file mode 100644 index 0000000..15406d5 --- /dev/null +++ b/.github/ACCESSIBILITY.md @@ -0,0 +1,21 @@ +# Accessibility + +## Our Commitment + +We want the HTMLHint extension for VS Code to be usable by everyone, including people who use screen readers, keyboard navigation, high contrast themes or other assistive technologies. + +The extension reports problems through VS Code's built-in diagnostics, so lint results are available in the editor, the Problems panel and the accessible diff and navigation features that VS Code provides. Several HTMLHint rules, such as `alt-require`, `button-type-require`, `frame-title-require`, `html-lang-require` and `input-requires-label`, also help you find accessibility issues in your own HTML. + +## Reporting an Accessibility Issue + +If you find a barrier when using the extension, or a rule that gives incorrect or unhelpful accessibility guidance, please [open an issue](https://github.com/htmlhint/vscode-htmlhint/issues/new) and include as much of the following information as possible: + +- A description of the problem and how it affects you +- The extension version, VS Code version and operating system +- Any assistive technology in use, such as the screen reader and its version +- Steps to reproduce, including any sample HTML files or `.htmlhintrc` configuration +- What you expected to happen + +We will review accessibility reports and prioritize fixes that block people from using the extension. + +Issues with the accessibility of VS Code itself should be reported to the [VS Code repository](https://github.com/microsoft/vscode/issues). Issues with HTMLHint rules should be reported to the [HTMLHint repository](https://github.com/htmlhint/HTMLHint/issues). diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7d0d954..5069f92 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -32,7 +32,7 @@ jobs: persist-credentials: false - name: Initialize CodeQL - uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 + uses: github/codeql-action/init@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: languages: ${{ matrix.language }} queries: +security-and-quality @@ -41,9 +41,9 @@ jobs: - test/* - name: Autobuild - uses: github/codeql-action/autobuild@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 + uses: github/codeql-action/autobuild@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 + uses: github/codeql-action/analyze@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/ossf-scorecard.yml b/.github/workflows/ossf-scorecard.yml index b5106dd..3762a04 100644 --- a/.github/workflows/ossf-scorecard.yml +++ b/.github/workflows/ossf-scorecard.yml @@ -24,20 +24,20 @@ jobs: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4 + uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0 with: results_file: results.sarif results_format: sarif publish_results: true - name: "Upload artifact" - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: SARIF file path: results.sarif retention-days: 5 - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4.38.2 + uses: github/codeql-action/upload-sarif@24c54180a607b1449ed407dd24f251e4e9147c8d # v4.38.3 with: sarif_file: results.sarif diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7cbd333..54f12fd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,7 +17,7 @@ jobs: with: persist-credentials: false - - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: .nvmrc @@ -28,12 +28,12 @@ jobs: - run: npm run package - name: Publish to Open VSX Registry - uses: HaaLeo/publish-vscode-extension@ca5561daa085dee804bf9f37fe0165785a9b14db # v2.0.0 + uses: HaaLeo/publish-vscode-extension@1b8df468b849f76a143b8c18bf0ffa2075398d12 # v2.1.0 with: pat: ${{ secrets.OPEN_VSX_TOKEN }} - name: Publish to Visual Studio Marketplace - uses: HaaLeo/publish-vscode-extension@ca5561daa085dee804bf9f37fe0165785a9b14db # v2.0.0 + uses: HaaLeo/publish-vscode-extension@1b8df468b849f76a143b8c18bf0ffa2075398d12 # v2.1.0 with: pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} registryUrl: https://marketplace.visualstudio.com diff --git a/.github/workflows/super-linter.yml b/.github/workflows/super-linter.yml index b6379ab..d2286ce 100644 --- a/.github/workflows/super-linter.yml +++ b/.github/workflows/super-linter.yml @@ -27,7 +27,7 @@ jobs: persist-credentials: false - name: Setup Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: .nvmrc cache: npm @@ -36,7 +36,7 @@ jobs: run: npm ci - name: Lint Code Base - uses: super-linter/super-linter/slim@4ce20838b8ab83717e78138c5b3a1407148e0918 # v8.7.0 + uses: super-linter/super-linter/slim@2da136927bd4a73596db63044b504547c62cb854 # v9.0.0 env: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 92c959a..cb0c8ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: persist-credentials: false - name: Set up Node.js - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 + uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version-file: .nvmrc cache: npm diff --git a/.npmrc b/.npmrc index d8b9abb..4c48830 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ registry='https://registry.npmjs.org/' +min-release-age=1 diff --git a/htmlhint/.npmrc b/htmlhint/.npmrc index 79f2519..f24fb52 100644 --- a/htmlhint/.npmrc +++ b/htmlhint/.npmrc @@ -1,2 +1,3 @@ fund = false registry = 'https://registry.npmjs.org/' +min-release-age = 1