From 0d82304478ec733b4d13ed484fb1c8bab9d3baac Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Wed, 13 Dec 2023 16:18:10 -0500 Subject: [PATCH 1/3] Fix issues with github actions Signed-off-by: Ian Maddaus --- .github/workflows/docs-lint.yml | 4 ++-- .github/workflows/labeler.yml | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml index 9ccf96feb0..fc50bf05cf 100644 --- a/.github/workflows/docs-lint.yml +++ b/.github/workflows/docs-lint.yml @@ -26,8 +26,8 @@ jobs: - uses: carlosperate/download-file-action@v1.0.3 id: download-cspell-config with: - file-url: 'https://github.com/chef/chef-web-docs/blob/main/cspell.json' - file-name: 'cspell.json' + file-url: 'https://github.com/chef/chef-web-docs/blob/main/cspell.yaml' + file-name: 'cspell.yaml' - uses: carlosperate/download-file-action@v1.0.3 id: download-chef-dictionary with: diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 4415f00108..356bbb9111 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -4,8 +4,11 @@ on: jobs: triage: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@main + - uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 589ce700ae60238a94fe0f6c3801420ac5480916 Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Wed, 13 Dec 2023 16:40:59 -0500 Subject: [PATCH 2/3] Update markdownlint action Signed-off-by: Ian Maddaus --- .github/workflows/docs-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml index fc50bf05cf..24f83f2ae9 100644 --- a/.github/workflows/docs-lint.yml +++ b/.github/workflows/docs-lint.yml @@ -52,7 +52,7 @@ jobs: - uses: actions/checkout@v3 with: token: "${{ secrets.GITHUB_TOKEN }}" - - uses: DavidAnson/markdownlint-cli2-action@v4 + - uses: DavidAnson/markdownlint-cli2-action@v14 with: globs: | content/*.md From dee9e873539b0bc6a6153459f47e1249de237112 Mon Sep 17 00:00:00 2001 From: Ian Maddaus Date: Wed, 13 Dec 2023 16:46:02 -0500 Subject: [PATCH 3/3] Update cspell Signed-off-by: Ian Maddaus --- .github/workflows/docs-lint.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs-lint.yml b/.github/workflows/docs-lint.yml index 24f83f2ae9..2fae67dfc6 100644 --- a/.github/workflows/docs-lint.yml +++ b/.github/workflows/docs-lint.yml @@ -20,25 +20,25 @@ jobs: cspell-action: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: token: "${{ secrets.GITHUB_TOKEN }}" - - uses: carlosperate/download-file-action@v1.0.3 + - uses: carlosperate/download-file-action@v2 id: download-cspell-config with: file-url: 'https://github.com/chef/chef-web-docs/blob/main/cspell.yaml' file-name: 'cspell.yaml' - - uses: carlosperate/download-file-action@v1.0.3 + - uses: carlosperate/download-file-action@v2 id: download-chef-dictionary with: file-url: 'https://raw.githubusercontent.com/chef/chef_dictionary/main/chef.txt' file-name: 'chef_dictionary.txt' - - uses: carlosperate/download-file-action@v1.0.3 + - uses: carlosperate/download-file-action@v2 id: download-docs-dictionary with: file-url: 'https://raw.githubusercontent.com/chef/chef_dictionary/main/docs.txt' file-name: 'docs_dictionary.txt' - - uses: streetsidesoftware/cspell-action@v1.3.4 + - uses: streetsidesoftware/cspell-action@v5 with: files: '*.md' root: './docs-chef-io/content/supermarket'