Skip to content

Commit 83e8ac4

Browse files
fix: updates to GitHub Actions workflows to improve security and streamline triggers (#518)
* code updated * path updated
1 parent b05e040 commit 83e8ac4

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/workflows/CAdeploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
export TEXT_EMBEDDING_MIN_CAPACITY="45"
2727
export AZURE_REGIONS="${{ vars.AZURE_REGIONS_CA }}"
2828
29-
chmod +x scripts/checkquota.sh
30-
if ! scripts/checkquota.sh; then
29+
chmod +x infra/scripts/checkquota.sh
30+
if ! infra/scripts/checkquota.sh; then
3131
# If quota check fails due to insufficient quota, set the flag
32-
if grep -q "No region with sufficient quota found" scripts/checkquota.sh; then
32+
if grep -q "No region with sufficient quota found" infra/scripts/checkquota.sh; then
3333
echo "QUOTA_FAILED=true" >> $GITHUB_ENV
3434
fi
3535
exit 1 # Fail the pipeline if any other failure occurs

.github/workflows/Create-Release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
'@semantic-release/github'
5757
]
5858
env:
59-
GITHUB_TOKEN: ${{ secrets.TOKEN }}
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
- run: echo ${{ steps.semantic.outputs.release-version }}
6161

6262
- run: echo "$OUTPUTS"

.github/workflows/azure-dev-validation.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Azure Template Validation
22
on:
3-
push:
4-
branches:
5-
- dev
6-
- main
73
workflow_dispatch:
84

95
permissions:

0 commit comments

Comments
 (0)