Skip to content

Commit bbb6c91

Browse files
step-security-botmickaelistria
authored andcommitted
[StepSecurity] Apply security best practices
resolve: #675 Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 863dbe0 commit bbb6c91

4 files changed

Lines changed: 23 additions & 9 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ updates:
44
directory: "/"
55
schedule:
66
interval: daily
7+
8+
9+
- package-ecosystem: docker
10+
directory: /container
11+
schedule:
12+
interval: daily
13+
14+
- package-ecosystem: maven
15+
directory: /
16+
schedule:
17+
interval: daily

.github/workflows/junit.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
types:
77
- completed
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
unit-test-results:
1114
name: Unit Test Results
@@ -35,7 +38,7 @@ jobs:
3538
done
3639
3740
- name: Publish Unit Test Results
38-
uses: EnricoMi/publish-unit-test-result-action@v2
41+
uses: EnricoMi/publish-unit-test-result-action@4e7013f9576bd22ffdae979dc6e68cb9ec2aeece # v2.7.0
3942
id: test-results
4043
with:
4144
commit: ${{ github.event.workflow_run.head_sha }}

.github/workflows/maven.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Upload
21-
uses: actions/upload-artifact@v3
21+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
2222
with:
2323
name: Event File
2424
path: ${{ github.event_path }}
@@ -35,33 +35,33 @@ jobs:
3535
name: Verify ${{ matrix.config.name }} with Java-${{ matrix.java }}
3636
steps:
3737
- name: checkout swt
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
3939
with:
4040
path: 'eclipse.platform.swt'
4141
fetch-depth: 0 # required for jgit timestamp provider to work
4242
- name: checkout swt.binaries
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
4444
with:
4545
path: eclipse.platform.swt.binaries
4646
repository: 'eclipse-platform/eclipse.platform.swt.binaries'
4747
- name: Install Linux requirements
4848
run: sudo apt-get update -qq && sudo apt-get install -qq -y webkit2gtk-driver
4949
if: ${{ matrix.config.native == 'gtk.linux.x86_64'}}
5050
- name: Set up Java ${{ matrix.java }}
51-
uses: actions/setup-java@v3
51+
uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0
5252
with:
5353
java-version: ${{ matrix.java }}
5454
distribution: 'temurin'
5555
cache: maven
5656
- name: Build swt.binaries fragments with Maven
57-
uses: coactions/setup-xvfb@v1
57+
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
5858
with:
5959
run: >-
6060
mvn --batch-mode -Pbuild-individual-bundles -DforceContextQualifier=zzz
6161
-Dcompare-version-with-baselines.skip=true -Dmaven.compiler.failOnWarning=true install
6262
working-directory: eclipse.platform.swt.binaries
6363
- name: Build with Maven
64-
uses: coactions/setup-xvfb@v1
64+
uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1
6565
with:
6666
run: >-
6767
mvn --batch-mode -V -U
@@ -75,7 +75,7 @@ jobs:
7575
working-directory: eclipse.platform.swt
7676
- name: Upload Test Results for ${{ matrix.config.name }} / Java-${{ matrix.java }}
7777
if: always()
78-
uses: actions/upload-artifact@v3
78+
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
7979
with:
8080
name: test-results-${{ matrix.config.native }}-java${{ matrix.java }}
8181
if-no-files-found: warn

container/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipsecbi/fedora-gtk3-mutter:36-gtk3.24
1+
FROM eclipsecbi/fedora-gtk3-mutter:36-gtk3.24@sha256:50d440da3892344537c3b5b43ec7295632e45de61a5823160862fbc474cc6e32
22

33
# Back to root for install
44
USER 0

0 commit comments

Comments
 (0)