Skip to content

Commit edb1feb

Browse files
committed
Changes made into few more files
1 parent 001f291 commit edb1feb

5 files changed

Lines changed: 36 additions & 19 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
uses: actions/checkout@v4
2424

2525
- name: Initialize CodeQL
26-
uses: github/codeql-action/init@v2
26+
uses: github/codeql-action/init@v3
2727
with:
2828
languages: ${{ matrix.language }}
2929

3030
- name: Perform CodeQL Analysis
31-
uses: github/codeql-action/analyze@v2
31+
uses: github/codeql-action/analyze@v3

.github/workflows/combine-dependabot-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
118118
- name: Get token
119119
id: get_token
120-
uses: machine-learning-apps/actions-app-token@master
120+
uses: machine-learning-apps/actions-app-token@v1
121121
with:
122122
APP_PEM: ${{ secrets.APP_PEM }}
123123
APP_ID: ${{ secrets.APP_ID }}

.github/workflows/deploy-live.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Deploy to Firebase
6060
id: deploy_live
61-
uses: FirebaseExtended/action-hosting-deploy@276388dd6c2cde23455b30293105cc866c22282d # v0.6-alpha
61+
uses: FirebaseExtended/action-hosting-deploy@v0
6262
with:
6363
repoToken: "${{ secrets.GITHUB_TOKEN }}"
6464
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_PANDEV }}"

.github/workflows/deploy-preview.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ jobs:
4141
ref: ${{ github.event.pull_request.head.sha }}
4242

4343
- name: Initialize CodeQL
44-
uses: github/codeql-action/init@v2
44+
uses: github/codeql-action/init@v3
4545
with:
4646
languages: ${{ matrix.language }}
4747

4848
- name: Perform CodeQL Analysis
49-
uses: github/codeql-action/analyze@v2
49+
uses: github/codeql-action/analyze@v3
5050

5151
analyze_unsafe:
5252
if: github.repository_owner == 'PaloAltoNetworks' && needs.precheck.outputs.is-org-member-result != 'null'
@@ -70,12 +70,12 @@ jobs:
7070
ref: ${{ github.event.pull_request.head.sha }}
7171

7272
- name: Initialize CodeQL
73-
uses: github/codeql-action/init@v2
73+
uses: github/codeql-action/init@v3
7474
with:
7575
languages: ${{ matrix.language }}
7676

7777
- name: Perform CodeQL Analysis
78-
uses: github/codeql-action/analyze@v2
78+
uses: github/codeql-action/analyze@v3
7979

8080
build:
8181
name: Build
@@ -138,7 +138,7 @@ jobs:
138138

139139
- name: Deploy to Firebase
140140
id: deploy_preview
141-
uses: FirebaseExtended/action-hosting-deploy@276388dd6c2cde23455b30293105cc866c22282d # v0.6-alpha
141+
uses: FirebaseExtended/action-hosting-deploy@v0
142142
with:
143143
repoToken: "${{ secrets.GITHUB_TOKEN }}"
144144
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_PANDEV }}"

update-actions.sh

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,40 @@
33
# Update deprecated GitHub Actions
44
echo "Updating deprecated GitHub Actions..."
55

6-
# Update checkout v3 to v4
6+
# Update core actions
77
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/actions\/checkout@v3/actions\/checkout@v4/g'
8-
9-
# Update setup-node v3 to v4
108
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/actions\/setup-node@v3/actions\/setup-node@v4/g'
11-
12-
# Update github-script v3 to v7
139
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/actions\/github-script@v3/actions\/github-script@v7/g'
14-
15-
# Update upload-artifact v3 to v4
1610
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/actions\/upload-artifact@v3/actions\/upload-artifact@v4/g'
17-
18-
# Update download-artifact v3 to v4
1911
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/actions\/download-artifact@v3/actions\/download-artifact@v4/g'
2012

13+
# Update CodeQL actions from v2 to v3
14+
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/github\/codeql-action\/init@v2/github\/codeql-action\/init@v3/g'
15+
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/github\/codeql-action\/analyze@v2/github\/codeql-action\/analyze@v3/g'
16+
17+
# Update Firebase action to latest version
18+
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/FirebaseExtended\/action-hosting-deploy@276388dd6c2cde23455b30293105cc866c22282d # v0.6-alpha/FirebaseExtended\/action-hosting-deploy@v0/g'
19+
20+
# Update machine-learning-apps action from @master to specific version
21+
find .github/workflows -name "*.yml" -o -name "*.yaml" | xargs sed -i '' 's/machine-learning-apps\/actions-app-token@master/machine-learning-apps\/actions-app-token@v1/g'
22+
2123
echo "Done updating GitHub Actions!"
2224

2325
# Check for any remaining deprecated actions
2426
echo "Checking for remaining deprecated actions..."
25-
grep -r "actions/.*@v[123]" .github/workflows/ || echo "No deprecated actions found!"
27+
echo "=== Core Actions ==="
28+
grep -r "actions/checkout@v[123]" .github/workflows/ && echo "❌ Found deprecated checkout actions" || echo "✅ All checkout actions updated"
29+
grep -r "actions/setup-node@v[123]" .github/workflows/ && echo "❌ Found deprecated setup-node actions" || echo "✅ All setup-node actions updated"
30+
grep -r "actions/upload-artifact@v[123]" .github/workflows/ && echo "❌ Found deprecated upload-artifact actions" || echo "✅ All upload-artifact actions updated"
31+
grep -r "actions/download-artifact@v[123]" .github/workflows/ && echo "❌ Found deprecated download-artifact actions" || echo "✅ All download-artifact actions updated"
32+
grep -r "actions/github-script@v[123]" .github/workflows/ && echo "❌ Found deprecated github-script actions" || echo "✅ All github-script actions updated"
33+
34+
echo "=== CodeQL Actions ==="
35+
grep -r "codeql-action.*@v[12]" .github/workflows/ && echo "❌ Found deprecated CodeQL actions" || echo "✅ All CodeQL actions updated"
36+
37+
echo "=== Other Actions ==="
38+
grep -r "@master" .github/workflows/ && echo "⚠️ Found actions using @master branch" || echo "✅ No actions using @master branch"
39+
grep -r "276388dd6c2cde23455b30293105cc866c22282d" .github/workflows/ && echo "❌ Found pinned Firebase action commit" || echo "✅ Firebase action updated to latest"
40+
41+
echo "=== Summary ==="
42+
echo "All GitHub Actions have been updated to their latest stable versions."

0 commit comments

Comments
 (0)