Skip to content

Commit 3c17eb2

Browse files
authored
Merge pull request #18837 from mozilla/revert-zizmor
Revert "Merge pull request #18771 from bkochendorfer/zimzor-static-an…
2 parents 164ae6b + bb4ba41 commit 3c17eb2

8 files changed

Lines changed: 16 additions & 61 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ jobs:
3838
steps:
3939
- name: Checkout repository
4040
uses: actions/checkout@v4
41-
with:
42-
persist-credentials: false
4341

4442
# Initializes the CodeQL tools for scanning.
4543
- name: Initialize CodeQL

.github/workflows/docker.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
steps:
3131
- id: determine
3232
run: |
33-
if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${GIT_TAG}" != "" ]]; then
34-
tag="${GIT_TAG}"
33+
if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.git_tag }}" != "" ]]; then
34+
tag="${{ inputs.git_tag }}"
3535
elif [[ "${{ github.event_name }}" == "check_run" ]]; then
3636
echo ${CIRCLECI_EXTERNAL_ID}
3737
CIRCLECI_WORKFLOW_ID=$(echo "${CIRCLECI_EXTERNAL_ID}" | jq -r '."workflow-id"')
@@ -53,8 +53,6 @@ jobs:
5353
echo "Trigger docker build & push on ${{ github.event_name }} and cannot determine tag" >> $GITHUB_STEP_SUMMARY
5454
exit 1
5555
fi
56-
env:
57-
GIT_TAG: "${{ inputs.git_tag }}"
5856
5957
docker:
6058
name: Docker build and push to GAR
@@ -76,22 +74,21 @@ jobs:
7674
- uses: actions/checkout@v4
7775
with:
7876
ref: ${{ env.GIT_TAG }}
79-
persist-credentials: false
8077

8178
- uses: actions/setup-node@v4
79+
with:
80+
cache: yarn
8281

8382
- run: ./_scripts/l10n/clone.sh
8483

8584
- run: ./.circleci/base-install.sh
8685

8786
- run: ./_scripts/create-version-json.sh
8887

89-
- uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 #v3
90-
with:
91-
cache-binary: false
88+
- uses: docker/setup-buildx-action@v3
9289

9390
- id: meta
94-
uses: docker/metadata-action@902fa8ec7d6ecbf8d84d538b9b233a880e428804 #v5
91+
uses: docker/metadata-action@v5
9592
with:
9693
images: |
9794
${{ env.GAR_LOCATION }}-docker.pkg.dev/${{ env.GCP_PROJECT_ID }}/${{ env.GAR_REPOSITORY}}/${{ env.IMAGE}}
@@ -100,26 +97,26 @@ jobs:
10097
type=raw,${{ env.GIT_TAG }}
10198
10299
- id: gcp-auth
103-
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f #v2
100+
uses: google-github-actions/auth@v2
104101
with:
105102
token_format: 'access_token'
106103
service_account: artifact-writer@${{ env.GCP_PROJECT_ID}}.iam.gserviceaccount.com
107104
workload_identity_provider: ${{ vars.GCPV2_GITHUB_WORKLOAD_IDENTITY_PROVIDER }}
108105

109106
- id: dockerhub-auth
110-
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3
107+
uses: docker/login-action@v3
111108
with:
112109
username: ${{ vars.DOCKERHUB_USERNAME }}
113110
password: ${{ secrets.DOCKERHUB_PASSWORD }}
114111

115-
- uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 #v3
112+
- uses: docker/login-action@v3
116113
with:
117114
registry: ${{ env.GAR_LOCATION }}-docker.pkg.dev
118115
username: oauth2accesstoken
119116
password: ${{ steps.gcp-auth.outputs.access_token }}
120117

121118
- id: build-and-push
122-
uses: docker/build-push-action@14487ce63c7a62a4a324b0bfb37086795e31c6c1 #v6
119+
uses: docker/build-push-action@v6
123120
with:
124121
context: .
125122
file: _dev/docker/mono/Dockerfile

.github/workflows/glean-probe-scraper.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
push:
66
branches: main
77

8-
permissions: {}
9-
108
jobs:
119
glean-probe-scraper:
1210
uses: mozilla/probe-scraper/.github/workflows/glean.yaml@main

.github/workflows/l10n-gettext-extract.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@ on:
33
pull_request:
44
paths:
55
- 'packages/fxa-content-server/**'
6-
76
jobs:
87
extract:
9-
permissions:
10-
contents: write
118
runs-on: ubuntu-latest
129
steps:
1310
- name: Install Linux packages
@@ -26,13 +23,11 @@ jobs:
2623
with:
2724
repository: mozilla/fxa-content-server-l10n
2825
path: 'fxa-l10n'
29-
persist-credentials: false
3026
- name: Clone FxA code repository
3127
uses: actions/checkout@v4
3228
with:
3329
fetch-depth: 2
3430
path: 'fxa-code'
35-
persist-credentials: false
3631
- name: Install npm packages
3732
run: |
3833
cd fxa-l10n

.github/workflows/pull-legal-docs.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
with:
1919
path: fxa
2020
fetch-depth: 2
21-
persist-credentials: false
2221

2322
- name: Clone legal-docs repository
2423
uses: actions/checkout@v4
@@ -27,7 +26,6 @@ jobs:
2726
ref: prod
2827
path: legal-docs
2928
token: ${{ secrets.GITHUB_TOKEN }}
30-
persist-credentials: false
3129

3230
- name: Pull pdfs from legal-docs and push changes to FxA
3331
run: |

.github/workflows/tag-release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818

1919
- name: Check out code
2020
uses: actions/checkout@v4
21-
with:
22-
persist-credentials: false
2321

2422
- name: Fetch all git tags
2523
run: git fetch --tags origin
@@ -38,10 +36,8 @@ jobs:
3836

3937
- name: Initialize mandatory git config
4038
run: |
41-
git config user.name "${TRIGGERING_ACTOR }"
39+
git config user.name "${{ github.triggering_actor }}"
4240
git config user.email "[email protected]"
43-
env:
44-
TRIGGERING_ACTOR: "${{ github.triggering_actor }}"
4541
4642
- name: Commit update to branch
4743
if: env.versionNumber != ''

.github/workflows/upload-assets-to-cdn.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ jobs:
2222
steps:
2323
- name: Checkout repository
2424
uses: actions/checkout@v4
25-
with:
26-
persist-credentials: false
2725

2826
- name: Configure Stage AWS credentials
29-
uses: aws-actions/configure-aws-credentials@4d5f2395c037584ea85572b7fc12e63c9156a46e
27+
uses: aws-actions/configure-aws-credentials@master
3028
with:
3129
aws-region: us-east-1
3230
role-to-assume: arn:aws:iam::142069644989:role/fxa-content-cdn-stage-asset-upload
@@ -39,7 +37,7 @@ jobs:
3937
aws s3 sync --cache-control 'public,max-age=86400' --exclude "*" --include "*.pdf" --content-disposition attachment assets/legal s3://fxa-content-cdn-stage-distbucket-bpquvfnty86g/legal
4038
4139
- name: Configure Production AWS credentials
42-
uses: aws-actions/configure-aws-credentials@4d5f2395c037584ea85572b7fc12e63c9156a46e
40+
uses: aws-actions/configure-aws-credentials@master
4341
with:
4442
aws-region: us-west-2
4543
role-to-assume: arn:aws:iam::361527076523:role/fxa-content-cdn-prod-asset-upload
@@ -52,7 +50,7 @@ jobs:
5250
aws s3 sync --cache-control 'public,max-age=86400' --exclude "*" --include "*.pdf" --content-disposition attachment assets/legal s3://fxa-content-cdn-prod-distbucket-gqg70i8xqycy/legal
5351
5452
- name: Configure Stage GCP credentials
55-
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f #v2
53+
uses: google-github-actions/auth@v2
5654
with:
5755
service_account: gke-cdn-upload-stage@${{ secrets.GCP_NONPROD_PROJECT_ID }}.iam.gserviceaccount.com
5856
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_POOL_PROJECT_NUMBER }}
@@ -64,7 +62,7 @@ jobs:
6462
gcloud storage cp --cache-control='public,max-age=86400' --content-disposition=attachment -r assets/legal/* gs://fxa-content-cdn-stage-distbucket/legal/
6563
6664
- name: Configure Prod GCP credentials
67-
uses: google-github-actions/auth@6fc4af4b145ae7821d527454aa9bd537d1f2dc5f #v2
65+
uses: google-github-actions/auth@v2
6866
with:
6967
service_account: gke-cdn-upload-prod@${{ secrets.GCP_PROD_PROJECT_ID }}.iam.gserviceaccount.com
7068
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_POOL_PROJECT_NUMBER }}
@@ -76,7 +74,7 @@ jobs:
7674
gcloud storage cp --cache-control='public,max-age=86400' --content-disposition=attachment -r assets/legal/* gs://fxa-content-cdn-prod-distbucket/legal/
7775
7876
- name: "Post to fxa-team Slack channel"
79-
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 #v1.27.0
77+
uses: slackapi/[email protected]
8078
with:
8179
channel-id: 'CLV3KMZ8B'
8280
slack-message: "New assets have been uploaded to CDN: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

.github/workflows/zizmor.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)