Skip to content

Commit ed27430

Browse files
[StepSecurity] Apply security best practices (#1014)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent 85973b6 commit ed27430

8 files changed

Lines changed: 18 additions & 12 deletions

File tree

.github/workflows/ast-cli-team-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ permissions:
1111

1212
jobs:
1313
add-assignee-and-reviewers:
14-
runs-on: ubuntu-latest
14+
runs-on: cx-public-ubuntu-x64
1515
if: ${{ github.event.pull_request.user.type != 'Bot' }}
1616
steps:
1717
- name: Set up GitHub CLI
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1919
with:
2020
version: latest
2121

.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/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: AST Javascript wrapper CI
22

33
on: [pull_request]
4+
permissions:
5+
contents: read
6+
47
jobs:
58
integration-tests:
6-
runs-on: ubuntu-latest
9+
runs-on: cx-public-ubuntu-x64
710
steps:
811
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 #v4
912
with:

.github/workflows/cx-one-scan.yaml

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

.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,7 +47,7 @@ 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.OR_GITHUB_TOKEN }}
5353
BRANCH_NAME: npm-version-patch
@@ -57,7 +57,7 @@ jobs:
5757
steps:
5858

5959
# CHECKOUT PROJECT
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
6161
with:
6262
fetch-depth: 0
6363
lfs: true # Ensure LFS files are checked out
@@ -68,7 +68,7 @@ jobs:
6868
git config user.email github-actions@github.com
6969
7070
# SETUP NODE
71-
- uses: actions/setup-node@v4.0.2
71+
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
7272
with:
7373
node-version: 22.11.0
7474
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
@@ -4,11 +4,14 @@ on:
44
repository_dispatch:
55
types: [cli-version-update]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
update-checkmarx-cli:
9-
runs-on: ubuntu-latest
12+
runs-on: cx-public-ubuntu-x64
1013
steps:
11-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1215
with:
1316
lfs: true
1417

0 commit comments

Comments
 (0)