Compare commits

...

2 Commits

Author SHA1 Message Date
dependabot[bot]
c4d1d8e06d chore(deps): bump the github-actions-dependencies group across 1 directory with 3 updates
Some checks failed
Internal - Main - Continuous Integration / ci (push) Has been cancelled
Need fix to Issue / main (push) Has been cancelled
Internal - Main - Continuous Integration / release (push) Has been cancelled
Mark stale issues and pull requests / main (push) Has been cancelled
Bumps the github-actions-dependencies group with 3 updates in the / directory: [hoverkraft-tech/ci-github-nodejs](https://github.com/hoverkraft-tech/ci-github-nodejs), [hoverkraft-tech/ci-github-common](https://github.com/hoverkraft-tech/ci-github-common) and [actions/create-github-app-token](https://github.com/actions/create-github-app-token).


Updates `hoverkraft-tech/ci-github-nodejs` from 0.10.0 to 0.11.0
- [Release notes](https://github.com/hoverkraft-tech/ci-github-nodejs/releases)
- [Commits](0c281f43dd...5c1010a914)

Updates `hoverkraft-tech/ci-github-common` from 0.22.2 to 0.22.3
- [Release notes](https://github.com/hoverkraft-tech/ci-github-common/releases)
- [Commits](abd5469ef9...95664be4ec)

Updates `actions/create-github-app-token` from 2.0.2 to 2.0.3
- [Release notes](https://github.com/actions/create-github-app-token/releases)
- [Commits](3ff1caaa28...30bf6253fa)

---
updated-dependencies:
- dependency-name: hoverkraft-tech/ci-github-nodejs
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions-dependencies
- dependency-name: hoverkraft-tech/ci-github-common
  dependency-version: 0.22.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-dependencies
- dependency-name: actions/create-github-app-token
  dependency-version: 2.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-02 07:47:40 +02:00
Emilien Escalle
0544eebad5 chore: fix ci
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
2025-05-02 07:36:07 +02:00
13 changed files with 33 additions and 13 deletions

View File

@ -52,3 +52,15 @@ updates:
- "@actions/*" - "@actions/*"
npm-dev-dependencies: npm-dev-dependencies:
dependency-type: development dependency-type: development
- package-ecosystem: "devcontainers"
open-pull-requests-limit: 20
directory: "/"
schedule:
interval: weekly
day: friday
time: "04:00"
groups:
devcontainers-dependencies:
patterns:
- "*"

3
.github/linters/.jscpd.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"ignore": ["**/dist/**"]
}

View File

@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@0c281f43dd49fcdec089c67ee99819620d634046 # 0.10.0 - uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@5c1010a9146952f724730bf79ba8e2e40ba8e474 # 0.11.0
- name: Build dist/ Directory - name: Build dist/ Directory
id: package id: package

View File

@ -10,7 +10,7 @@ permissions:
jobs: jobs:
test-nodejs: test-nodejs:
uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@0c281f43dd49fcdec089c67ee99819620d634046 # 0.10.0 uses: hoverkraft-tech/ci-github-nodejs/.github/workflows/continuous-integration.yml@5c1010a9146952f724730bf79ba8e2e40ba8e474 # 0.11.0
permissions: permissions:
id-token: write id-token: write
security-events: write security-events: write

View File

@ -4,6 +4,7 @@ on:
workflow_call: workflow_call:
permissions: permissions:
actions: read
contents: read contents: read
packages: read packages: read
security-events: write security-events: write
@ -12,7 +13,7 @@ permissions:
jobs: jobs:
linter: linter:
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@abd5469ef96aaa3fa1508e2cbaa3e76734533e8a # 0.22.2 uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@95664be4ec235bfc221c4356c7153cbab3fb8f93 # 0.22.3
with: with:
linter-env: | linter-env: |
FILTER_REGEX_EXCLUDE=dist/**/* FILTER_REGEX_EXCLUDE=dist/**/*

View File

@ -13,4 +13,4 @@ permissions:
jobs: jobs:
greetings: greetings:
uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@abd5469ef96aaa3fa1508e2cbaa3e76734533e8a # 0.22.2 uses: hoverkraft-tech/ci-github-common/.github/workflows/greetings.yml@95664be4ec235bfc221c4356c7153cbab3fb8f93 # 0.22.3

View File

@ -11,6 +11,7 @@ on:
- cron: "25 8 * * 1" - cron: "25 8 * * 1"
permissions: permissions:
actions: read
contents: read contents: read
packages: read packages: read
security-events: write security-events: write
@ -38,13 +39,13 @@ jobs:
owner: ${{ github.repository_owner }} owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }} repo: ${{ github.event.repository.name }}
- uses: actions/create-github-app-token@3ff1caaa28b64c9cc276ce0a02e2ff584f3900c5 # v2.0.2 - uses: actions/create-github-app-token@30bf6253fa41bdc8d1501d202ad15287582246b4 # v2.0.3
id: generate-token id: generate-token
with: with:
app-id: ${{ vars.CI_BOT_APP_ID }} app-id: ${{ vars.CI_BOT_APP_ID }}
private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }} private-key: ${{ secrets.CI_BOT_APP_PRIVATE_KEY }}
- uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@abd5469ef96aaa3fa1508e2cbaa3e76734533e8a # 0.22.2 - uses: hoverkraft-tech/ci-github-common/actions/create-and-merge-pull-request@95664be4ec235bfc221c4356c7153cbab3fb8f93 # 0.22.3
with: with:
github-token: ${{ steps.generate-token.outputs.token }} github-token: ${{ steps.generate-token.outputs.token }}
branch: docs/actions-workflows-documentation-update branch: docs/actions-workflows-documentation-update

View File

@ -21,7 +21,7 @@ permissions:
jobs: jobs:
main: main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@abd5469ef96aaa3fa1508e2cbaa3e76734533e8a # 0.22.2 uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@95664be4ec235bfc221c4356c7153cbab3fb8f93 # 0.22.3
with: with:
manual-commit-ref: ${{ inputs.manual-commit-ref }} manual-commit-ref: ${{ inputs.manual-commit-ref }}
manual-base-ref: ${{ inputs.manual-base-ref }} manual-base-ref: ${{ inputs.manual-base-ref }}

View File

@ -6,6 +6,7 @@ on:
branches: [main] branches: [main]
permissions: permissions:
actions: read
contents: read contents: read
packages: read packages: read
statuses: write statuses: write

View File

@ -13,4 +13,4 @@ permissions:
jobs: jobs:
main: main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@abd5469ef96aaa3fa1508e2cbaa3e76734533e8a # 0.22.2 uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@95664be4ec235bfc221c4356c7153cbab3fb8f93 # 0.22.3

View File

@ -10,4 +10,4 @@ permissions:
jobs: jobs:
main: main:
uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@abd5469ef96aaa3fa1508e2cbaa3e76734533e8a # 0.22.2 uses: hoverkraft-tech/ci-github-common/.github/workflows/stale.yml@95664be4ec235bfc221c4356c7153cbab3fb8f93 # 0.22.3

View File

@ -3,6 +3,7 @@ FROM ghcr.io/super-linter/super-linter:slim-v7
ARG UID=1000 ARG UID=1000
ARG GID=1000 ARG GID=1000
RUN chown -R ${UID}:${GID} /github/home
USER ${UID}:${GID} USER ${UID}:${GID}
ENV RUN_LOCAL=true ENV RUN_LOCAL=true

View File

@ -8,9 +8,9 @@ lint: ## Execute linting
lint-fix: ## Execute linting and fix lint-fix: ## Execute linting and fix
$(call run_linter, \ $(call run_linter, \
-e FIX_JSON_PRETTIER=true \
-e FIX_YAML_PRETTIER=true \ -e FIX_YAML_PRETTIER=true \
-e FIX_MARKDOWN=true \ -e FIX_MARKDOWN=true \
-e FIX_JSON_PRETTIER=true \
-e FIX_MARKDOWN_PRETTIER=true \ -e FIX_MARKDOWN_PRETTIER=true \
-e FIX_NATURAL_LANGUAGE=true) -e FIX_NATURAL_LANGUAGE=true)
@ -18,12 +18,13 @@ define run_linter
DEFAULT_WORKSPACE="$(CURDIR)"; \ DEFAULT_WORKSPACE="$(CURDIR)"; \
LINTER_IMAGE="linter:latest"; \ LINTER_IMAGE="linter:latest"; \
VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \ VOLUME="$$DEFAULT_WORKSPACE:$$DEFAULT_WORKSPACE"; \
docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) --tag $$LINTER_IMAGE .; \ docker build --build-arg UID=$(shell id -u) --build-arg GID=$(shell id -g) --tag $$LINTER_IMAGE .; \
docker run \ docker run \
-e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \ -e DEFAULT_WORKSPACE="$$DEFAULT_WORKSPACE" \
-e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \ -e FILTER_REGEX_INCLUDE="$(filter-out $@,$(MAKECMDGOALS))" \
-e IGNORE_GITIGNORED_FILES=true \
-e KUBERNETES_KUBECONFORM_OPTIONS="--schema-location default --schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json'" \
-e FILTER_REGEX_EXCLUDE=dist/**/* \ -e FILTER_REGEX_EXCLUDE=dist/**/* \
-e VALIDATE_JSCPD=false \
-e VALIDATE_TYPESCRIPT_STANDARD=false \ -e VALIDATE_TYPESCRIPT_STANDARD=false \
-e VALIDATE_TYPESCRIPT_ES=false \ -e VALIDATE_TYPESCRIPT_ES=false \
-e VALIDATE_TYPESCRIPT_PRETTIER=false \ -e VALIDATE_TYPESCRIPT_PRETTIER=false \