Skip to content

Commit

Permalink
CodeQL - add permissions to GH workflows (#170)
Browse files Browse the repository at this point in the history
add permissions to GH workflows
  • Loading branch information
michaeldsmith authored Jan 4, 2025
1 parent 71f00cd commit 24607fe
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker_linuxes.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Docker-Linuxes

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: FreeBSD

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mac_debug.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: macOS-Debug

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mac_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: macOS-Release

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mac_release_shared.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: macOS-Release-shared

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/mac_release_static.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: macOS-Release-shared

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ubuntu_address_sanitizer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Ubuntu-AddressSanitizer

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down Expand Up @@ -58,9 +62,6 @@ jobs:
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -V --output-on-failure -C ${{env.BUILD_TYPE}}




openexr3:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu_debug.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Ubuntu-Debug

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu_no_libtiff.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Ubuntu-No LibTIFF

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ubuntu_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Ubuntu-Release

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows_debug.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Windows-Debug

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Windows-Release

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows_vcpkg_debug.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Windows-vcpkg-Debug

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/windows_vcpkg_release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Windows-vcpkg-Release

permissions:
contents: read
pull-requests: write

on:
push:
paths-ignore:
Expand Down

0 comments on commit 24607fe

Please sign in to comment.