From 8b7426d49c39697ed5f1382f33945f6504793618 Mon Sep 17 00:00:00 2001 From: akashjavelin Date: Fri, 23 Jan 2026 03:29:40 +0000 Subject: [PATCH 1/5] devops: updating lint checks --- .github/workflows/pr-check.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index b7937a2..fc2dade 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -57,8 +57,11 @@ jobs: fi highflame-lint-check: + needs: + - reusable-workflow-env permissions: contents: 'read' + id-token: 'write' runs-on: ubuntu-24.04 steps: - name: Checkout @@ -72,19 +75,29 @@ jobs: python-version: ${{ env.PY_VER }} cache: 'pip' - - name: Python Lint Check + - name: Lint Check shell: bash run: |- - pip install flake8 - flake8 . --config=${{ env.PY_LINT_CFG }} --output-file=${{ env.LINT_REPORT_FILE }}.json - + pip install flake8 + flake8 . --config=${{ env.PY_LINT_CFG }} --output-file=${{ env.LINT_REPORT_FILE }}.json + - name: Upload Lint Report + if: ${{ always() }} uses: actions/upload-artifact@v4 with: name: ${{ env.LINT_REPORT_FILE }} path: ${{ env.LINT_REPORT_FILE }}.json retention-days: 1 + - name: Check If File Exists + id: check_lint_report + run: | + if [[ -f "${{ env.LINT_REPORT_FILE }}.json" ]] ; then + echo "lint_report=true" >> ${GITHUB_OUTPUT} + fi + outputs: + lint_report: ${{ steps.check_lint_report.outputs.lint_report }} + highflame-trivy-scan: permissions: contents: 'read' From 13df785c453dd171e7d3bc8749ca1dd8401c6b9a Mon Sep 17 00:00:00 2001 From: akashjavelin Date: Fri, 23 Jan 2026 03:32:19 +0000 Subject: [PATCH 2/5] devops: updating lint checks --- .github/workflows/pr-check.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index fc2dade..871ff4a 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -57,8 +57,6 @@ jobs: fi highflame-lint-check: - needs: - - reusable-workflow-env permissions: contents: 'read' id-token: 'write' From e2fabc700d2d4d65c5ad67ecd08e09c33797b319 Mon Sep 17 00:00:00 2001 From: akashjavelin Date: Wed, 28 Jan 2026 08:48:06 +0000 Subject: [PATCH 3/5] devops: updating lint checks --- .github/workflows/pr-check.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 871ff4a..0a2cf2c 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -39,9 +39,9 @@ jobs: - name: Get the last commit message id: commit_message - run: | - COMMIT_MESSAGE=$(git show -s --format=%s) - echo "message=${COMMIT_MESSAGE}" >> ${GITHUB_OUTPUT} + run: |- + COMMIT_MESSAGE=$(git show -s --format=%s) + echo "message=${COMMIT_MESSAGE}" >> ${GITHUB_OUTPUT} - name: Commit Message Check shell: bash @@ -76,8 +76,8 @@ jobs: - name: Lint Check shell: bash run: |- - pip install flake8 - flake8 . --config=${{ env.PY_LINT_CFG }} --output-file=${{ env.LINT_REPORT_FILE }}.json + pip install flake8 + flake8 . --config=${{ env.PY_LINT_CFG }} --output-file=${{ env.LINT_REPORT_FILE }}.json - name: Upload Lint Report if: ${{ always() }} @@ -89,9 +89,9 @@ jobs: - name: Check If File Exists id: check_lint_report - run: | + run: |- if [[ -f "${{ env.LINT_REPORT_FILE }}.json" ]] ; then - echo "lint_report=true" >> ${GITHUB_OUTPUT} + echo "lint_report=true" >> ${GITHUB_OUTPUT} fi outputs: lint_report: ${{ steps.check_lint_report.outputs.lint_report }} From 9c367c756f2a63306515c481328bd0432337a7d5 Mon Sep 17 00:00:00 2001 From: akashjavelin Date: Wed, 28 Jan 2026 09:14:37 +0000 Subject: [PATCH 4/5] devops: updating lint checks --- .github/workflows/pr-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 0a2cf2c..3d9000f 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -40,8 +40,8 @@ jobs: - name: Get the last commit message id: commit_message run: |- - COMMIT_MESSAGE=$(git show -s --format=%s) - echo "message=${COMMIT_MESSAGE}" >> ${GITHUB_OUTPUT} + COMMIT_MESSAGE=$(git show -s --format=%s) + echo "message=${COMMIT_MESSAGE}" >> ${GITHUB_OUTPUT} - name: Commit Message Check shell: bash From dcd0f1c589503b3f7390e5c8917d8cab9816f7e9 Mon Sep 17 00:00:00 2001 From: akashjavelin Date: Thu, 29 Jan 2026 04:00:30 +0000 Subject: [PATCH 5/5] devops: updating lint checks --- .github/workflows/pr-check.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index 3d9000f..86994d2 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -17,9 +17,6 @@ concurrency: cancel-in-progress: true env: - PY_LINT_CFG: ".flake8" - LINT_REPORT_FILE: "lint-report" - PY_VER: 3.11.8 PR_CHECK_PREFIX: "feat:|fix:|devops:|Merge|Revert|build\\(deps\\)|\\[Snyk\\]|Bump" GH_SEC_REPORT: false TRIVY_SEVERITY: "HIGH,CRITICAL" @@ -61,6 +58,10 @@ jobs: contents: 'read' id-token: 'write' runs-on: ubuntu-24.04 + env: + PY_VER: 3.12.0 + PY_LINT_CFG: .flake8 + LINT_REPORT_FILE: lint-report steps: - name: Checkout uses: actions/checkout@v4