Skip to content

Commit aa69a02

Browse files
authored
chore: pin GitHub Actions to commit shas BED-7914 (#295)
* update actions * pin actions
1 parent dafa641 commit aa69a02

4 files changed

Lines changed: 31 additions & 31 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: windows-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v6
14-
13+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
14+
1515
- name: Setup .NET
16-
uses: actions/setup-dotnet@v5
16+
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # ratchet:actions/setup-dotnet@v5
1717
with:
1818
dotnet-version: 8.0.x
19-
19+
2020
- name: Restore dependencies
2121
run: dotnet restore
22-
22+
2323
- name: Build
2424
run: dotnet build --no-restore
25-
25+
2626
- name: Test
27-
run: dotnet test --no-build
27+
run: dotnet test --no-build

.github/workflows/cla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
4242
- name: "CLA Assistant"
4343
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
44-
uses: contributor-assistant/github-action@v2.6.1
44+
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # ratchet:contributor-assistant/github-action@v2.6.1
4545
env:
4646
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
PERSONAL_ACCESS_TOKEN: ${{ secrets.REPO_SCOPE }}

.github/workflows/publish-dev-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: windows-latest
1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v6
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
1515

1616
- name: Setup .NET
17-
uses: actions/setup-dotnet@v5
17+
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # ratchet:actions/setup-dotnet@v5
1818
with:
1919
dotnet-version: 8.0.x
2020

.github/workflows/publish.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ jobs:
1111
runs-on: windows-latest
1212
steps:
1313
- name: Checkout Code
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
1515

1616
- name: Parse Version
17-
uses: web3j/substr-action@v1.2
17+
uses: web3j/substr-action@b4d735ad319ec9616c1e15965f83fddf4b1a44ab # ratchet:web3j/substr-action@v1.2
1818
id: version
1919
with:
2020
value: ${{ github.ref_name }}
2121
start: 1
2222

2323
- name: Setup .NET
24-
uses: actions/setup-dotnet@v3
24+
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7 # ratchet:actions/setup-dotnet@v5
2525
with:
2626
dotnet-version: |
27-
7.0.x
28-
5.0.x
27+
7.0.x
28+
5.0.x
2929
3030
- name: Restore Dependencies
3131
run: dotnet restore
@@ -34,54 +34,54 @@ jobs:
3434
run: dotnet test # coverage happens by default
3535

3636
- name: Upload Coverage Report
37-
uses: actions/upload-artifact@v4
37+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # ratchet:actions/upload-artifact@v7
3838
with:
3939
name: report
4040
path: docfx/coverage/report/
4141

4242
- name: Pack
43-
run: |
43+
run: |
4444
mkdir pkgs
4545
dotnet pack --no-restore -c Release -p:PackageVersion=${{ steps.version.outputs.result }} -o ./pkgs
46-
47-
# - name: Prep Packages
48-
# run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/BloodHoundAD/index.json"
4946
50-
# - name: Publish to GitHub Packages
51-
# run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
52-
#
53-
# - name: Publish NuGet
54-
# run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate
55-
47+
# - name: Prep Packages
48+
# run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/BloodHoundAD/index.json"
49+
50+
# - name: Publish to GitHub Packages
51+
# run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"
52+
#
53+
# - name: Publish NuGet
54+
# run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate
55+
5656
- name: Publish to SpecterOps Packages
5757
env:
5858
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }}
5959
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }}
6060
run: |
6161
dotnet tool install -g sleet
6262
sleet push ./pkgs --skip-existing
63-
63+
6464
ghpages:
6565
name: ghpages
6666
needs: nuget
6767
runs-on: ubuntu-latest
6868
steps:
6969
- name: Checkout Code
70-
uses: actions/checkout@v2
70+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # ratchet:actions/checkout@v6
7171

7272
- name: Download Coverage Report
73-
uses: actions/download-artifact@v4
73+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # ratchet:actions/download-artifact@v8
7474
with:
7575
name: report
7676
path: docfx/coverage/report
7777

7878
- name: Build Documentation
79-
uses: nikeee/docfx-action@v1.0.0
79+
uses: nikeee/docfx-action@b9c2cf92e3b4aa06878a1410833a8828b4bdcd26 # ratchet:nikeee/docfx-action@v1.0.0
8080
with:
8181
args: docfx/docfx.json
8282

8383
- name: Deploy GitHub Pages
84-
uses: JamesIves/github-pages-deploy-action@4.1.4
84+
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # ratchet:JamesIves/github-pages-deploy-action@v4.8.0
8585
with:
8686
branch: gh-pages
8787
folder: docs

0 commit comments

Comments
 (0)