From bb7b9dcc8e7dcfb2b63029df17f165aa8576c162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Tue, 25 Nov 2025 10:16:56 +0000 Subject: [PATCH 1/5] Remove duplicates and add GitHub action to lint collection-index.yml --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ _data/collection-index.yml | 2 -- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 00000000..a45953dc --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +name: 'Lint collection-index.yml' +on: + pull_request: + paths: + - _data/collection-index.yml + + +jobs: + yamllint: + name: 'Yamllint' + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@master + - name: 'Yamllint' + uses: karancode/yamllint-github-action@master + with: + yamllint_file_or_dir: _data/collection-index.yml + yamllint_strict: true + yamllint_comment: true + env: + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/_data/collection-index.yml b/_data/collection-index.yml index d430f2c3..ff19f5e9 100644 --- a/_data/collection-index.yml +++ b/_data/collection-index.yml @@ -977,7 +977,6 @@ contact: https://github.com/zetta/devcontainer-features/issues repository: https://github.com/zetta/devcontainer-features ociReference: ghcr.io/zetta/devcontainer-features - ociReference: ghcr.io/davzucky/devcontainers-features-wolfi - name: devcontainer features for ubuntugis maintainer: Conner Shoop contact: https://github.com/connershoop/devcontainer-feature-ubuntugis/issues @@ -988,7 +987,6 @@ contact: https://github.com/The-Nefarious-Developer/devcontainer-templates/issues repository: https://github.com/The-Nefarious-Developer/devcontainer-templates ociReference: ghcr.io/the-nefarious-developer/devcontainer-templates - ociReference: ghcr.io/davzucky/devcontainers-features-wolfi - name: Dev Container Features by ForWarD Software maintainer: ForWarD Software contact: https://github.com/forwardsoftware/devcontainer-features/issues From 44139d23a40e12dad5d35c8d0b969e0f16e97a90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Tue, 25 Nov 2025 10:19:24 +0000 Subject: [PATCH 2/5] Add write permission for pull-requests --- .github/workflows/lint.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a45953dc..607e3e92 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,9 @@ on: paths: - _data/collection-index.yml +permissions: + contents: read + pull-requests: write jobs: yamllint: @@ -19,4 +22,4 @@ jobs: yamllint_strict: true yamllint_comment: true env: - GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} From cb6e68627a7ad73a61764045c099b4c33fb9bd7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Tue, 25 Nov 2025 10:28:32 +0000 Subject: [PATCH 3/5] Add config to ignore some rules --- .github/lint-config.yaml | 10 ++++++++++ .github/workflows/lint.yml | 1 + 2 files changed, 11 insertions(+) create mode 100644 .github/lint-config.yaml diff --git a/.github/lint-config.yaml b/.github/lint-config.yaml new file mode 100644 index 00000000..301e6eaa --- /dev/null +++ b/.github/lint-config.yaml @@ -0,0 +1,10 @@ +--- + +extends: default + + +rules: + line-length: disable + trailing-spaces: disable + document-start: disable + diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a45953dc..a8812322 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -17,6 +17,7 @@ jobs: with: yamllint_file_or_dir: _data/collection-index.yml yamllint_strict: true + yamllint_config_filepath: .github/lint-config.yaml yamllint_comment: true env: GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From e39318773e4aae26a1dafcc54d00ed7bca491648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Tue, 25 Nov 2025 14:41:09 +0000 Subject: [PATCH 4/5] Pin versions --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2372dddd..4287ea5d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,9 +14,9 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout' - uses: actions/checkout@master + uses: actions/checkout@v6 - name: 'Yamllint' - uses: karancode/yamllint-github-action@master + uses: karancode/yamllint-github-action@v2 with: yamllint_file_or_dir: _data/collection-index.yml yamllint_strict: true From 999c54653ca9cb8cb809bf0ca52ee80c7d907ea2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Rausell=20Guiard?= <33221237+AlvaroRausell@users.noreply.github.com> Date: Tue, 25 Nov 2025 14:42:17 +0000 Subject: [PATCH 5/5] Fix version --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4287ea5d..0b3a297d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - name: 'Checkout' uses: actions/checkout@v6 - name: 'Yamllint' - uses: karancode/yamllint-github-action@v2 + uses: karancode/yamllint-github-action@@v2.1.1 with: yamllint_file_or_dir: _data/collection-index.yml yamllint_strict: true