Skip to content

Commit d64c89c

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

7 files changed

Lines changed: 19 additions & 10 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

1212
jobs:
1313
cx-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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ on: [ pull_request ]
44

55
jobs:
66
integration-tests:
7-
runs-on: ubuntu-latest
7+
runs-on: cx-public-ubuntu-x64
88

99
name: Integration Testing
1010
steps:
1111
- name: Checkout the repository
12-
uses: actions/checkout@v4.1.0
12+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
1313

1414
- name: Create source file
1515
run: |

.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-drafter.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44
branches:
55
- master
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
release-draft:
9-
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # for release-drafter/release-drafter to create a github release
14+
pull-requests: write # for release-drafter/release-drafter to add label to PR
15+
runs-on: cx-public-ubuntu-x64
1016

1117
steps:
1218
- name: Create Release

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ on:
1010

1111
jobs:
1212
release:
13-
runs-on: ubuntu-latest
13+
runs-on: cx-public-ubuntu-x64
1414
outputs:
1515
CLI_VERSION: ${{ steps.extract_cli_version.outputs.CLI_VERSION }}
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v4.1.0
19+
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2020
with:
2121
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
2222

.github/workflows/update-docker-image.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ on:
1010
repository_dispatch:
1111
types: [cli-version-update]
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
update-base-image:
15-
runs-on: ubuntu-latest
18+
runs-on: cx-public-ubuntu-x64
1619
permissions:
1720
contents: write
1821
pull-requests: write
1922

2023
steps:
2124
- name: Checkout Repository
22-
uses: actions/checkout@v4
25+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2326

2427
- name: Get Version and SHA256 Manifest Digest
2528
id: checkmarx-ast-cli

0 commit comments

Comments
 (0)