From 2e9982c42445735d0d5c0263b4fe5a241303992b Mon Sep 17 00:00:00 2001 From: "stepsecurity-app[bot]" <188008098+stepsecurity-app[bot]@users.noreply.github.com> Date: Fri, 22 May 2026 00:53:41 +0000 Subject: [PATCH] [StepSecurity] Apply security best practices Signed-off-by: StepSecurity Bot --- .github/workflows/auto-merge-pr.yml | 2 +- .github/workflows/checkmarx-one-scan.yml | 2 +- .github/workflows/ci.yml | 4 ++-- .github/workflows/dependabot-auto-merge.yml | 2 +- .github/workflows/release-drafter.yml | 8 +++++++- .github/workflows/release.yml | 4 ++-- .github/workflows/update-docker-image.yml | 7 +++++-- 7 files changed, 19 insertions(+), 10 deletions(-) diff --git a/.github/workflows/auto-merge-pr.yml b/.github/workflows/auto-merge-pr.yml index 44d8ff6..e2af567 100644 --- a/.github/workflows/auto-merge-pr.yml +++ b/.github/workflows/auto-merge-pr.yml @@ -6,7 +6,7 @@ permissions: jobs: dependabot-merge: - runs-on: ubuntu-latest + runs-on: cx-public-ubuntu-x64 if: contains(github.head_ref, 'feature/update_cli') steps: - name: Enable auto-merge for Dependabot PRs diff --git a/.github/workflows/checkmarx-one-scan.yml b/.github/workflows/checkmarx-one-scan.yml index 212fe04..81a39d5 100644 --- a/.github/workflows/checkmarx-one-scan.yml +++ b/.github/workflows/checkmarx-one-scan.yml @@ -11,7 +11,7 @@ on: jobs: cx-scan: - runs-on: ubuntu-latest + runs-on: cx-public-ubuntu-x64 steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8f93332..2aa5795 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,12 +4,12 @@ on: [ pull_request ] jobs: integration-tests: - runs-on: ubuntu-latest + runs-on: cx-public-ubuntu-x64 name: Integration Testing steps: - name: Checkout the repository - uses: actions/checkout@v4.1.0 + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - name: Create source file run: | diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 1b7e133..5583406 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -6,7 +6,7 @@ permissions: jobs: dependabot-merge: - runs-on: ubuntu-latest + runs-on: cx-public-ubuntu-x64 if: ${{ github.actor == 'dependabot[bot]' }} steps: - name: Dependabot metadata diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 3f986d4..2d58a34 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -4,9 +4,15 @@ on: branches: - master +permissions: + contents: read + jobs: release-draft: - runs-on: ubuntu-latest + permissions: + contents: write # for release-drafter/release-drafter to create a github release + pull-requests: write # for release-drafter/release-drafter to add label to PR + runs-on: cx-public-ubuntu-x64 steps: - name: Create Release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7906074..bd3ee8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,13 +10,13 @@ on: jobs: release: - runs-on: ubuntu-latest + runs-on: cx-public-ubuntu-x64 outputs: CLI_VERSION: ${{ steps.extract_cli_version.outputs.CLI_VERSION }} steps: - name: Checkout - uses: actions/checkout@v4.1.0 + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} diff --git a/.github/workflows/update-docker-image.yml b/.github/workflows/update-docker-image.yml index 145651d..93a6c8f 100644 --- a/.github/workflows/update-docker-image.yml +++ b/.github/workflows/update-docker-image.yml @@ -10,16 +10,19 @@ on: repository_dispatch: types: [cli-version-update] +permissions: + contents: read + jobs: update-base-image: - runs-on: ubuntu-latest + runs-on: cx-public-ubuntu-x64 permissions: contents: write pull-requests: write steps: - name: Checkout Repository - uses: actions/checkout@v4 + uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 - name: Get Version and SHA256 Manifest Digest id: checkmarx-ast-cli