Skip to content

Commit 82b4827

Browse files
Merge branch 'main' into copyright
2 parents c2cfb99 + cec80c7 commit 82b4827

File tree

5 files changed

+28
-16
lines changed

5 files changed

+28
-16
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
schedule:
2323
- cron: '20 9 * * 5'
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
analyze:
2730
name: Analyze
@@ -41,16 +44,16 @@ jobs:
4144

4245
steps:
4346
- name: Checkout repository
44-
uses: actions/checkout@v4
47+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4548

4649
- name: Setup .NET
47-
uses: actions/setup-dotnet@v4
50+
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
4851
with:
4952
dotnet-version: 9.0.x
5053

5154
# Initializes the CodeQL tools for scanning.
5255
- name: Initialize CodeQL
53-
uses: github/codeql-action/init@v3
56+
uses: github/codeql-action/init@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
5457
with:
5558
languages: ${{ matrix.language }}
5659
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -78,4 +81,4 @@ jobs:
7881
run: dotnet build --no-restore -c Release
7982

8083
- name: Perform CodeQL Analysis
81-
uses: github/codeql-action/analyze@v3
84+
uses: github/codeql-action/analyze@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8

.github/workflows/codeql-required-workaround.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010

1111
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
analyze: #names must match the original workflow
1518
name: Analyze (csharp)

.github/workflows/create-release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
env:
1919
release: 'dev-proxy-${{ matrix.architecture }}-${{ github.ref_name }}'
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
- name: Setup .NET
23-
uses: actions/setup-dotnet@v4
23+
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
2424
with:
2525
dotnet-version: 9.0.x
2626
- name: Rename executable for beta
@@ -57,28 +57,28 @@ jobs:
5757
Get-ChildItem -Filter *.runtimeconfig.json -Recurse | Remove-Item
5858
popd
5959
- name: Archive release ${{ env.release }}
60-
uses: thedoctor0/zip-release@master
60+
uses: thedoctor0/zip-release@a24011d8d445e4da5935a7e73c1f98e22a439464 # master
6161
with:
6262
filename: '../${{ env.release }}.zip'
6363
directory: './${{ env.release }}'
6464
- name: Release SHA256 hash
6565
run: |
6666
$(Get-FileHash ./${{ env.release }}.zip -Algorithm SHA256).Hash
6767
- name: Upload release
68-
uses: actions/upload-artifact@v4
68+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6969
with:
7070
name: binaries-${{ env.release }}
7171
path: ./${{ env.release }}.zip
7272
- name: Archive abstractions
7373
if: matrix.architecture == 'win-x64'
74-
uses: thedoctor0/zip-release@master
74+
uses: thedoctor0/zip-release@a24011d8d445e4da5935a7e73c1f98e22a439464 # master
7575
with:
7676
filename: '../../../../dev-proxy-abstractions-${{ github.ref_name }}.zip'
7777
directory: './dev-proxy-abstractions/bin/Release/net9.0'
7878
exclusions: '*.json'
7979
- name: Upload abstractions
8080
if: matrix.architecture == 'win-x64'
81-
uses: actions/upload-artifact@v4
81+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
8282
with:
8383
name: binaries-dev-proxy-abstractions-${{ github.ref_name }}
8484
path: ./dev-proxy-abstractions-${{ github.ref_name }}.zip
@@ -113,7 +113,7 @@ jobs:
113113
working-directory: ./${{ env.release }}
114114
- name: Upload Installer
115115
if: contains(matrix.architecture, 'win-')
116-
uses: actions/upload-artifact@v4
116+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
117117
with:
118118
name: installer-dev-proxy-${{ github.ref_name }}-${{ matrix.architecture }}
119119
path: ./${{ env.release }}/dev-proxy-installer-${{ matrix.architecture }}-${{ github.ref_name }}.exe
@@ -130,12 +130,12 @@ jobs:
130130
permissions:
131131
contents: write
132132
steps:
133-
- uses: actions/checkout@v4
134-
- uses: actions/download-artifact@v4
133+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
134+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
135135
with:
136136
path: output
137137
- name: Release
138-
uses: anton-yurchenko/git-release@v6.0
138+
uses: anton-yurchenko/git-release@ec9c5b5c36b27eaffc628785b9183eae54601200 # v6.0.0
139139
env:
140140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
141141
DRAFT_RELEASE: "false"

.github/workflows/dotnet-required-workaround.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010

1111
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build:
1518
runs-on: ubuntu-latest

.github/workflows/dotnet.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ on:
99
# The branches below must be a subset of the branches above
1010
paths-ignore: ['samples/**', '**.md', '.vscode/**', '**.svg']
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417

1518
runs-on: ubuntu-latest
1619

1720
steps:
18-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1922
- name: Setup .NET
20-
uses: actions/setup-dotnet@v4
23+
uses: actions/setup-dotnet@3951f0dfe7a07e2313ec93c75700083e2005cbab # v4.3.0
2124
with:
2225
dotnet-version: 9.0.x
2326
- name: Restore workloads

0 commit comments

Comments
 (0)