Skip to content

Commit

Permalink
Update workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
robomics committed Jan 19, 2025
1 parent 50ca8a9 commit 235d6c8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-almalinux9-cxx-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ defaults:
run:
shell: bash

permissions:
contents: read

jobs:
build-almalinux9-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-centos7-cxx-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,15 @@ defaults:
run:
shell: bash

permissions:
contents: read

jobs:
build-centos7-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/build-cxx-ubuntu-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ defaults:
run:
shell: bash

permissions:
contents: read
packages: write

jobs:
build-dockerfile:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/build-modle-ci-ubuntu-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ defaults:
run:
shell: bash

permissions:
contents: read

jobs:
build-ubuntu-image:
runs-on: ubuntu-latest
if: |
github.event_name != 'workflow_run' ||
github.event.workflow_run.conclusion == 'success'
permissions:
contents: read
packages: write

strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 235d6c8

Please sign in to comment.