From 11fe2770333b8e9400efd13e0b4ad2d607c9bf3b Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 6 May 2025 18:40:30 +0200 Subject: [PATCH 1/2] github-action: add catalog-validate for GitHub actions --- .github/workflows/catalog-info.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/catalog-info.yml diff --git a/.github/workflows/catalog-info.yml b/.github/workflows/catalog-info.yml new file mode 100644 index 0000000..006340a --- /dev/null +++ b/.github/workflows/catalog-info.yml @@ -0,0 +1,21 @@ +--- +name: catalog-info + +on: + pull_request: + branches: + - main + paths: + - 'catalog-info.yaml' + +jobs: + validate: + runs-on: ubuntu-latest + permissions: + contents: read + packages: read + steps: + - uses: actions/checkout@v4 + + - uses: elastic/oblt-actions/elastic/validate-catalog@v1 + From c5dfee2513b050782184b25e05be577acc605c8e Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 6 May 2025 19:06:25 +0200 Subject: [PATCH 2/2] Update .github/workflows/catalog-info.yml --- .github/workflows/catalog-info.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/catalog-info.yml b/.github/workflows/catalog-info.yml index 006340a..47103e0 100644 --- a/.github/workflows/catalog-info.yml +++ b/.github/workflows/catalog-info.yml @@ -8,6 +8,9 @@ on: paths: - 'catalog-info.yaml' +permissions: + contents: read + jobs: validate: runs-on: ubuntu-latest