@@ -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