Skip to content

Commit

Permalink
Fix CI permissions (#26)
Browse files Browse the repository at this point in the history
Follow the CodeQL guidelines to fix CI.
  • Loading branch information
chrisstaite authored Jan 13, 2025
1 parent dcd2d53 commit 9344d51
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: CMake

permissions:
contents: write
pull-requests: write

on:
push:
branches: [ main ]
pull_request:
branches: [ mainw ]
branches: [ main ]
release:
types: [ created ]

Expand Down Expand Up @@ -36,7 +40,7 @@ jobs:
run: mv ${{github.workspace}}/build/dote ${{github.workspace}}/build/dote_linux

- name: Upload release binary
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2
if: github.event_name == 'release' && github.event.action == 'created'
with:
files: ${{github.workspace}}/build/dote_linux
Expand Down Expand Up @@ -100,7 +104,7 @@ jobs:
run: mv ${{github.workspace}}/build/dote ${{github.workspace}}/build/dote_${{matrix.architecture}}

- name: Upload release binary
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2
if: github.event_name == 'release' && github.event.action == 'created'
with:
files: ${{github.workspace}}/build/dote_${{matrix.architecture}}
Expand Down Expand Up @@ -132,7 +136,7 @@ jobs:
run: mv ${{github.workspace}}/build_mac/dote ${{github.workspace}}/build_mac/dote_mac

- name: Upload release binary
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda #v2
if: github.event_name == 'release' && github.event.action == 'created'
with:
files: ${{github.workspace}}/build_mac/dote_mac

0 comments on commit 9344d51

Please sign in to comment.