Skip to content

Commit

Permalink
fix (cicd): Adding right permissions to pipelines
Browse files Browse the repository at this point in the history
* fix (cicd): Adding right permissions to pipelines

* Update cd-deploy-to-prod.yml
* Update cd-deploy-to-test.yml
* Update ci-check-linters.yml
* Update ci-unit-tests.yml
* Update delete-deployment.yml
* Update sub-build-push-image.yml
* Update sub-cloudrun-deploy.yml
  • Loading branch information
akevinieron committed May 12, 2024
1 parent 8233029 commit 65f3300
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cd-deploy-to-dev.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Deploy to dev

permissions: read-all

on:
workflow_dispatch:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cd-deploy-to-prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Deploy to prod

permissions: read-all

on:
release:
types:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cd-deploy-to-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Deploy to test

permissions: read-all

on:
workflow_dispatch:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-check-linters.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Lint Code Base

permissions: read-all

on:
pull_request:
branches: [master]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Unit Tests

permissions: read-all

on:
workflow_call:
inputs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/delete-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Delete Cloud Run instances on PR closed by merged

permissions: read-all

on:
pull_request:
branches:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sub-build-push-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Build docker image

permissions: read-all

on:
workflow_call:
inputs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sub-cloudrun-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Deploy to Cloud Run

permissions: read-all

on:
workflow_call:
inputs:
Expand Down

0 comments on commit 65f3300

Please sign in to comment.