Skip to content

Commit b62f22b

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 8048a28 commit b62f22b

7 files changed

Lines changed: 21 additions & 15 deletions

File tree

.github/workflows/auto-merge-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66

77
jobs:
88
dependabot-merge:
9-
runs-on: ubuntu-latest
9+
runs-on: cx-public-ubuntu-x64
1010
if: contains(github.head_ref, 'feature/update_cli')
1111
steps:
1212
- name: Enable auto-merge for Dependabot PRs

.github/workflows/checkmarx-one-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
cx-scan:
1313
name: Checkmarx One Scan
14-
runs-on: ubuntu-latest
14+
runs-on: cx-public-ubuntu-x64
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: AST Javascript wrapper CI
22

33
on: [ pull_request ]
4+
permissions:
5+
contents: read
6+
47
jobs:
58
unit-tests:
6-
runs-on: ubuntu-latest
9+
runs-on: cx-public-ubuntu-x64
710
steps:
8-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
912
- name: Use Node.js 22.11.0
10-
uses: actions/setup-node@v4.0.2
13+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
1114
with:
1215
node-version: 22.11.0
1316
registry-url: https://npm.pkg.github.com/
@@ -16,11 +19,11 @@ jobs:
1619

1720
run: npm run test:unit
1821
integration-tests:
19-
runs-on: ubuntu-latest
22+
runs-on: cx-public-ubuntu-x64
2023
steps:
21-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2225
- name: Use Node.js 22.11.0
23-
uses: actions/setup-node@v4.0.2
26+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2427
with:
2528
node-version: 22.11.0
2629
registry-url: https://npm.pkg.github.com/

.github/workflows/delete-packages-and-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121

2222
jobs:
2323
delete:
24-
runs-on: ubuntu-latest
24+
runs-on: cx-public-ubuntu-x64
2525
steps:
2626

2727
- name: Delete npm packages

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ permissions:
66

77
jobs:
88
dependabot-merge:
9-
runs-on: ubuntu-latest
9+
runs-on: cx-public-ubuntu-x64
1010
if: ${{ github.actor == 'dependabot[bot]' }}
1111
steps:
1212
- name: Dependabot metadata

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ jobs:
4747
secrets: inherit
4848
if: inputs.dev == true
4949
release:
50-
runs-on: ubuntu-latest
50+
runs-on: cx-public-ubuntu-x64
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
5353
BRANCH_NAME: npm-version-patch
5454
outputs:
5555
TAG_NAME: ${{ steps.generate_tag_name.outputs.TAG_NAME }}
5656
CLI_VERSION: ${{ steps.extract_cli_version.outputs.CLI_VERSION }}
5757
steps:
58-
- uses: actions/checkout@v4
58+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
5959
with:
6060
fetch-depth: 0
6161

@@ -64,7 +64,7 @@ jobs:
6464
git config user.name github-actions
6565
git config user.email github-actions@github.com
6666
67-
- uses: actions/setup-node@v4.0.2
67+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
6868
with:
6969
node-version: 22.11.0
7070
registry-url: https://npm.pkg.github.com/

.github/workflows/update-cli.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ on:
99
repository_dispatch:
1010
types: [cli-version-update]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
update-checkmarx-cli:
14-
runs-on: ubuntu-latest
17+
runs-on: cx-public-ubuntu-x64
1518

1619
steps:
17-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1821

1922
# Fetch the latest Checkmarx AST CLI version
2023
- name: Get Latest Checkmarx API version

0 commit comments

Comments
 (0)