File tree Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 2626 name : Deploy to Kubernetes
2727 runs-on : ubuntu-latest
2828 environment : production
29- permissions :
30- contents : write
31- actions : read
32-
3329 steps :
3430 - name : Checkout Repository
3531 uses : actions/checkout@v5
Original file line number Diff line number Diff line change 1414 description : " Docker image tag"
1515 value : ${{ jobs.docker-build.outputs.image-tag }}
1616
17- permissions :
18- contents : write
19- packages : write
20- id-token : write
21-
2217env :
2318 MONGO_URI : ${{ secrets.MONGO_URI }}
2419 MONGO_USERNAME : ${{ secrets.MONGO_USERNAME }}
2823 docker-build :
2924 name : Docker Build and Test
3025 runs-on : ubuntu-latest
31- permissions :
32- contents : read
33- packages : write
26+
3427 outputs :
3528 image-tag : ${{ github.sha }}
3629
Original file line number Diff line number Diff line change 11name : Solar System - Main Pipeline
2-
32on :
43 workflow_dispatch :
54 inputs :
@@ -36,15 +35,21 @@ jobs:
3635 if : ${{ !inputs.skip-tests }}
3736 uses : ./.github/workflows/ci.yml
3837 secrets : inherit
38+ permissions :
39+ contents : write
40+ packages : write
41+ id-token : write
42+ actions : read
3943
4044 docker :
4145 name : Build Docker Image
4246 if : ${{ !inputs.skip-docker && (success() || inputs.skip-tests) }}
4347 needs : [ci]
4448 permissions :
45- contents : read
49+ contents : write
4650 packages : write
4751 id-token : write
52+ actions : read
4853 uses : ./.github/workflows/docker.yml
4954 secrets : inherit
5055 with :
5661 needs : [docker]
5762 uses : ./.github/workflows/terraform.yml
5863 secrets : inherit
64+ permissions :
65+ contents : write
66+ packages : write
67+ id-token : write
68+ actions : read
5969 with :
6070 terraform-action : ' apply'
6171
6575 needs : [terraform, docker]
6676 uses : ./.github/workflows/deploy.yml
6777 secrets : inherit
78+ permissions :
79+ contents : write
80+ packages : write
81+ id-token : write
82+ actions : read
6883 with :
69- image-tag : ${{ github.sha }}
84+ image-tag : ${{ github.sha }}
You can’t perform that action at this time.
0 commit comments