Skip to content

Commit e8fc0e6

Browse files
authored
Address zizmor errors and warnings (#104)
1 parent 0beaaf9 commit e8fc0e6

File tree

12 files changed

+75
-202
lines changed

12 files changed

+75
-202
lines changed

.github/actions/code-freeze/action.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/actions/create-system-test-docker-base-images/action.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/actions/deploy-aas-dev-apps/action.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/actions/publish-debug-symbols/action.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/workflows/build_linux_profiler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build-linux-profiler-x86_64:
1114
runs-on: ubuntu-latest
@@ -19,6 +22,7 @@ jobs:
1922
uses: actions/checkout@v4
2023
with:
2124
submodules: 'true'
25+
persist-credentials: false
2226
- run: RELEASE_VERSION=dev-$(git rev-parse --short HEAD) ARCH=x86_64 LIBC=${{ matrix.name }} make docker/build
2327
build-linux-profiler-aarch64:
2428
runs-on: github-hosted-ubuntu-arm64-large
@@ -32,4 +36,5 @@ jobs:
3236
uses: actions/checkout@v4
3337
with:
3438
submodules: 'true'
39+
persist-credentials: false
3540
- run: RELEASE_VERSION=dev-$(git rev-parse --short HEAD) ARCH=aarch64 LIBC=${{ matrix.name }} make docker/build

.github/workflows/build_managed_helper.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [main]
88

9+
10+
permissions:
11+
contents: read
12+
913
jobs:
1014
build-managed-helper:
1115
runs-on: ubuntu-latest
@@ -15,6 +19,7 @@ jobs:
1519
uses: actions/checkout@v4
1620
with:
1721
submodules: 'true'
22+
persist-credentials: false
1823
- uses: actions/setup-dotnet@v3
1924
with:
2025
dotnet-version: '6.0'

.github/workflows/build_tracing_packages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
pull_request:
77
branches: [main]
88

9+
10+
permissions:
11+
contents: read
12+
913
jobs:
1014
build-opentracing-lib:
1115
runs-on: ubuntu-latest
@@ -14,6 +18,7 @@ jobs:
1418
uses: actions/checkout@v4
1519
with:
1620
submodules: 'true'
21+
persist-credentials: false
1722
- uses: actions/setup-dotnet@v3
1823
with:
1924
dotnet-version: '6.0'
@@ -26,6 +31,7 @@ jobs:
2631
uses: actions/checkout@v4
2732
with:
2833
submodules: 'true'
34+
persist-credentials: false
2935
- uses: actions/setup-dotnet@v3
3036
with:
3137
dotnet-version: '6.0'

.github/workflows/tag_linux.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ on:
66
- 'v*'
77
- '!v*opentelemetry'
88
- '!v*opentracing'
9+
910
jobs:
1011
release-linux-profiler-x86_64:
12+
permissions:
13+
contents: write
1114
runs-on: ubuntu-latest
1215
env:
1316
DOCKER_BUILDKIT: 1
@@ -22,7 +25,8 @@ jobs:
2225
uses: actions/checkout@v4
2326
with:
2427
submodules: 'true'
25-
- uses: docker/login-action@v3
28+
persist-credentials: false
29+
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
2630
name: Login to Docker Hub
2731
with:
2832
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -32,10 +36,12 @@ jobs:
3236
- run: make docker/push
3337
- run: make docker/archive
3438
- name: Release
35-
uses: softprops/action-gh-release@v2
39+
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
3640
with:
3741
files: ./*.tar.gz
3842
release-linux-profiler-aarch64:
43+
permissions:
44+
contents: write
3945
runs-on: github-hosted-ubuntu-arm64-large
4046
env:
4147
DOCKER_BUILDKIT: 1
@@ -50,7 +56,8 @@ jobs:
5056
uses: actions/checkout@v4
5157
with:
5258
submodules: 'true'
53-
- uses: docker/login-action@v3
59+
persist-credentials: false
60+
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
5461
name: Login to Docker Hub
5562
with:
5663
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -60,10 +67,12 @@ jobs:
6067
- run: make docker/push
6168
- run: make docker/archive
6269
- name: Release
63-
uses: softprops/action-gh-release@v2
70+
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
6471
with:
6572
files: ./*.tar.gz
6673
release-linux-profiler:
74+
permissions:
75+
contents: read
6776
needs: ['release-linux-profiler-x86_64', 'release-linux-profiler-aarch64']
6877
runs-on: ubuntu-latest
6978
env:
@@ -78,7 +87,8 @@ jobs:
7887
uses: actions/checkout@v4
7988
with:
8089
submodules: 'true'
81-
- uses: docker/login-action@v3
90+
persist-credentials: false
91+
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3.4.0
8292
name: Login to Docker Hub
8393
with:
8494
username: ${{ secrets.DOCKERHUB_USERNAME }}

.github/workflows/tag_managed_helper.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- '!v*opentelemetry'
88
- '!v*opentracing'
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
release-managed-helper:
1215
runs-on: ubuntu-latest
@@ -17,6 +20,7 @@ jobs:
1720
uses: actions/checkout@v4
1821
with:
1922
submodules: 'true'
23+
persist-credentials: false
2024
- uses: actions/setup-dotnet@v3
2125
with:
2226
dotnet-version: '6.0'
@@ -29,7 +33,7 @@ jobs:
2933
env:
3034
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
3135
- name: Release
32-
uses: softprops/action-gh-release@v2
36+
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
3337
if: startsWith(github.ref, 'refs/tags/')
3438
with:
3539
files: |

.github/workflows/tag_tracing_opentelemetry_helper.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- v*-opentelemetry
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
release-opentelemetry-lib:
1013
runs-on: ubuntu-latest
@@ -13,6 +16,7 @@ jobs:
1316
uses: actions/checkout@v4
1417
with:
1518
submodules: 'true'
19+
persist-credentials: false
1620
- uses: actions/setup-dotnet@v3
1721
with:
1822
dotnet-version: '6.0'
@@ -24,7 +28,7 @@ jobs:
2428
env:
2529
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
2630
- name: Release
27-
uses: softprops/action-gh-release@v2
31+
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
2832
if: startsWith(github.ref, 'refs/tags/')
2933
with:
3034
files: |

0 commit comments

Comments
 (0)