diff --git a/.github/workflows/helm-lint.yml b/.github/workflows/helm-lint.yml index fc9ada4..871ef32 100644 --- a/.github/workflows/helm-lint.yml +++ b/.github/workflows/helm-lint.yml @@ -1,3 +1,4 @@ +--- name: Helm Lint on: @@ -14,26 +15,27 @@ on: jobs: helm-check: - runs-on: ubuntu:latest + runs-on: ubuntu-latest + permissions: + id-token: write + contents: write steps: - name: Install packages run: | - apt update - apt install -y git unzip + sudo apt update + sudo apt install -y git unzip - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@master with: fetch-depth: 0 - name: Set up Helm - uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 - with: - version: v3.10.1 + uses: azure/setup-helm@v4.2.0 - name: Get changed files id: changed-files - uses: tj-actions/changed-files@8238a4103220c636f2dad328ead8a7c8dbe316a3 # v39.2.0 + uses: tj-actions/changed-files@main with: files: | apps/** @@ -51,7 +53,6 @@ jobs: for file in ${{ steps.changed-files.outputs.all_changed_files }}; do chart=$(echo $file | cut -d/ -f 1-2) values_dir="$chart/values" - # Check and lint values in the 'values' directories if [[ -d "$values_dir" ]]; then for value_file in $(find "$values_dir" -type f); do @@ -59,10 +60,10 @@ jobs: helm lint "$chart" -f "$value_file" done fi - # Fallback to lint the chart without specific value files if none of the directories exist + # Fallback to lint the chart without specific value + # files if none of the directories exist if [[ ! -d "$values_dir" ]]; then helm lint "$chart" fi done - shell: bash diff --git a/.github/workflows/json-lint.yml b/.github/workflows/json-lint.yml index 35777e8..c9a26ce 100644 --- a/.github/workflows/json-lint.yml +++ b/.github/workflows/json-lint.yml @@ -1,3 +1,4 @@ +--- name: JSON Lint on: @@ -13,21 +14,24 @@ on: jobs: json-check: - runs-on: ubuntu:latest + runs-on: ubuntu-latest + permissions: + id-token: write + contents: write steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@master with: fetch-depth: 0 - name: Get changed files id: changed-files - uses: tj-actions/changed-files@8238a4103220c636f2dad328ead8a7c8dbe316a3 # v39.2.0 + uses: tj-actions/changed-files@main with: files: | apps/**/values/** - name: JSON lint - uses: dungpham91/lint-json-inside-yaml@ee76a68fafcf4b959e711e24d11d9c4f33137e80 # v0.0.2 + uses: dungpham91/lint-json-inside-yaml@main with: folder_or_file: ${{ steps.changed-files.outputs.all_changed_files }} diff --git a/.github/workflows/yaml-lint.yml b/.github/workflows/yaml-lint.yml index 8a2d088..64359c3 100644 --- a/.github/workflows/yaml-lint.yml +++ b/.github/workflows/yaml-lint.yml @@ -1,3 +1,4 @@ +--- name: Yaml Lint on: @@ -5,8 +6,8 @@ on: branches: - main paths: - - .github/** - - environments/** + - '.github/**' + - 'environments/**' types: - opened - reopened @@ -14,22 +15,25 @@ on: jobs: yaml-check: - runs-on: ubuntu:latest + runs-on: ubuntu-latest + permissions: + id-token: write + contents: write steps: - name: Install packages run: | - apt update - apt install -y git - apt install -y yamllint + sudo apt update + sudo apt install -y git + sudo apt install -y yamllint - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@master with: fetch-depth: 0 - name: Get changed files id: changed-files - uses: tj-actions/changed-files@8238a4103220c636f2dad328ead8a7c8dbe316a3 # v39.2.0 + uses: tj-actions/changed-files@main with: files: | .github/** diff --git a/apps/iptoolkits/values/dev.yaml b/apps/iptoolkits/values/dev.yaml index dd05134..c9809bf 100644 --- a/apps/iptoolkits/values/dev.yaml +++ b/apps/iptoolkits/values/dev.yaml @@ -1,7 +1,3 @@ -# Default values for iptoolkits. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - replicaCount: 1 image: @@ -98,4 +94,4 @@ config: PORT: "3000" reloader: - enabled: true \ No newline at end of file + enabled: true