Skip to content

Commit ca98d52

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

8 files changed

Lines changed: 24 additions & 16 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/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on: [ pull_request ]
44

55
jobs:
66
integration-tests:
7-
runs-on: ubuntu-latest
7+
runs-on: cx-public-ubuntu-x64
88
steps:
99
- name: Checkout
10-
uses: actions/checkout@v4
10+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1111
with:
1212
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1313
lfs: true
@@ -22,15 +22,15 @@ jobs:
2222
run: git lfs checkout
2323

2424
- name: Cache local Maven repository
25-
uses: actions/cache@v4
25+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
2626
with:
2727
path: ~/.m2/repository
2828
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
2929
restore-keys: |
3030
${{ runner.os }}-maven-
3131
3232
- name: Set up JDK 11
33-
uses: actions/setup-java@v4.3.0
33+
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
3434
with:
3535
distribution: 'temurin'
3636
java-version: '11'

.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/manual-tag.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ on:
77
description: 'Next release tag'
88
required: true
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
tag-creation:
12-
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write # for Git to git push
17+
runs-on: cx-public-ubuntu-x64
1318
steps:
1419
- name: Checkout
15-
uses: actions/checkout@v4
20+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1621
with:
1722
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
1823
- name: Tag

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
delete_tag:
10-
runs-on: ubuntu-latest
10+
runs-on: cx-public-ubuntu-x64
1111
steps:
1212
- name: Delete release
1313
uses: dev-drprasad/delete-tag-and-release@8cd619d00037e4aeb781909c9a6b03940507d0da # v1.0.1

.github/workflows/pr-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
pr-labeler:
1111
permissions:
1212
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
13-
runs-on: ubuntu-latest
13+
runs-on: cx-public-ubuntu-x64
1414
steps:
1515
- uses: TimonVS/pr-labeler-action@f9c084306ce8b3f488a8f3ee1ccedc6da131d1af #v5
1616
with:

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ on:
3434

3535
jobs:
3636
release:
37-
runs-on: ubuntu-latest
37+
runs-on: cx-public-ubuntu-x64
3838
outputs:
3939
CLI_VERSION: ${{ steps.extract_cli_version.outputs.CLI_VERSION }}
4040
TAG_NAME: ${{ steps.set_tag_name.outputs.TAG_NAME }}
4141
steps:
4242
- name: Checkout
43-
uses: actions/checkout@v4
43+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
4444
with:
4545
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
4646
lfs: true
@@ -88,15 +88,15 @@ jobs:
8888
echo "::set-output name=TAG_NAME::${{ inputs.tag }}"
8989
9090
- name: Cache local Maven repository
91-
uses: actions/cache@v4
91+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
9292
with:
9393
path: ~/.m2/repository
9494
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
9595
restore-keys: |
9696
${{ runner.os }}-maven-
9797
9898
- name: Set up Maven Central Repository
99-
uses: actions/setup-java@v4.3.0
99+
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
100100
with:
101101
java-version: '11'
102102
distribution: 'temurin'

.github/workflows/update-cli.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ on:
55
repository_dispatch:
66
types: [cli-version-update]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
update_cli:
10-
runs-on: ubuntu-latest
13+
runs-on: cx-public-ubuntu-x64
1114
steps:
1215
- name: Checkout
13-
uses: actions/checkout@v4
16+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1417
with:
1518
lfs: true
1619

0 commit comments

Comments
 (0)