Skip to content

Commit

Permalink
chore(ci): workflow permission alerts (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Jan 6, 2025
1 parent f4e7773 commit 9b260d8
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

jobs:
tests:
name: Unit Tests
Expand All @@ -38,6 +40,8 @@ jobs:
name: Trivy Security Scan
if: ${{ ! github.event.pull_request.draft }}
needs: [tests]
permissions:
security-events: write
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/merge-demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

permissions: {}

jobs:
builds:
name: Builds
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ on:
- "**.md"
workflow_dispatch:

env:
NAME: fom

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

permissions: {}

jobs:
vars:
name: Set Variables
Expand Down Expand Up @@ -133,6 +132,8 @@ jobs:
prod-promotions:
name: Promote images to PROD
needs: [deploy-prod, vars]
permissions:
packages: write
runs-on: ubuntu-24.04
strategy:
matrix:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: Pull Request Closed

on:
pull_request:
types:
- closed
types: [closed]

concurrency:
group: ${{ github.event.number }}
cancel-in-progress: true

permissions:
packages: write

jobs:
cleanup:
name: Cleanup and Images
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ name: Pull Request Open

on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.event.number }}
cancel-in-progress: true

permissions: {}

jobs:
init:
name: Init
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number }}
cancel-in-progress: true

permissions: {}

jobs:
pr-description-add:
name: PR Description Add
Expand Down
1 change: 0 additions & 1 deletion db/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# RedHat UBI 8 with nodejs 14
FROM postgis/postgis:13-master

# Enable pgcrypto extension on startup
Expand Down

0 comments on commit 9b260d8

Please sign in to comment.