Skip to content

Commit

Permalink
Fix security GitHub Action workflow security issues (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
lithiumtoast authored Jan 11, 2025
1 parent ab74063 commit aa98d5f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: "Main"
permissions:
contents: read

on:
workflow_dispatch:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
name: "Release"
permissions:
contents: read

on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -66,7 +69,7 @@ jobs:
run: dotnet nuget push "./nupkg/**/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key $NUGET_ACCESS_TOKEN

- name: "Create tag and GitHub release"
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@c43d7637b9b9ce3e953168c325d27253a5d48d8e # v2.2.1
if: github.event_name == 'schedule' || github.event.inputs.pre-release == 'false'
with:
generate_release_notes: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: "Test .NET solution"
permissions:
contents: read

on:
workflow_call:
Expand Down

0 comments on commit aa98d5f

Please sign in to comment.