Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions .github/workflows/dev_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,19 @@
docker build -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.ref_name == 'main' && 'prod' || github.ref_name }}${{ github.ref_name != 'main' && '-latest' || 'latest' }} .
docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags
# This is done as Container Instance
# Deploy:
# needs: Build
# environment:
# name: Development
# runs-on: ubuntu-latest
# steps:
# - name: Login to Azure
# uses: azure/login@v1
# with:
# creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }}
# - name: Deploy to Dev
# uses: azure/webapps-deploy@v2
# with:
# app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
# images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}


Deploy:
needs: Build
environment:
name: Development
runs-on: ubuntu-latest
steps:
- name: Login to Azure
uses: azure/login@v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'dev_workflow.yaml' step
Uses Step
uses 'azure/login' with ref 'v1', not a pinned commit hash
with:
creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }}
- name: Deploy to Dev
uses: azure/webapps-deploy@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'dev_workflow.yaml' step
Uses Step
uses 'azure/webapps-deploy' with ref 'v2', not a pinned commit hash
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}
Comment on lines +25 to +38

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions

30 changes: 15 additions & 15 deletions .github/workflows/stage_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@
docker build -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }} -t ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.ref_name == 'main' && 'prod' || github.ref_name }}${{ github.ref_name != 'main' && '-latest' || 'latest' }} .
docker push ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }} --all-tags
# This is done as Container Instance
# Deploy:
# needs: Build
# environment:
# name: Stage
# runs-on: ubuntu-latest
# steps:
# - name: Login to Azure
# uses: azure/login@v1
# with:
# creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }}
# - name: Deploy to Dev
# uses: azure/webapps-deploy@v2
# with:
# app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
# images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}
Deploy:
needs: Build
environment:
name: Stage
runs-on: ubuntu-latest
steps:
- name: Login to Azure
uses: azure/login@v1

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'stage_workflow.yaml' step
Uses Step
uses 'azure/login' with ref 'v1', not a pinned commit hash
with:
creds: ${{ secrets.TDEI_CORE_AZURE_CREDS }}
- name: Deploy to Dev
uses: azure/webapps-deploy@v2

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'stage_workflow.yaml' step
Uses Step
uses 'azure/webapps-deploy' with ref 'v2', not a pinned commit hash
with:
app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
images: ${{ secrets.REGISTRY_DOMAIN }}/${{ secrets.REGISTRY_REPO }}:${{ github.sha }}



Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions
Loading