Skip to content

Commit

Permalink
chore(ci): update checkout to v4 (#1905)
Browse files Browse the repository at this point in the history
  • Loading branch information
jennmueng authored Feb 11, 2025
1 parent 16a2106 commit 43b0c2e
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
statuses: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get changed files
id: changes
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
Expand All @@ -27,7 +27,7 @@ jobs:
all:
- added|modified: '**/*'
- uses: getsentry/action-setup-venv@a133e6fd5fa6abd3f590a1c106abda344f5df69f # v2.1.0
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
with:
python-version: 3.11.8
cache-dependency-path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
TEST: 1

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- id: "auth"
uses: google-github-actions/auth@v1
with:
Expand Down
98 changes: 49 additions & 49 deletions .github/workflows/validate-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
name: Validate Deployment Pipelines

on:
pull_request:
push:
branches: [main, test-me-*]
pull_request:
push:
branches: [main, test-me-*]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
files-changed:
name: files-changed
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
gocd: ${{ steps.changes.outputs.gocd }}
steps:
- uses: actions/checkout@v3
- name: Check for relevant file changes
uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:
filters: |
gocd:
- 'gocd/**'
files-changed:
name: files-changed
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
gocd: ${{ steps.changes.outputs.gocd }}
steps:
- uses: actions/checkout@v3
- name: Check for relevant file changes
uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:
filters: |
gocd:
- 'gocd/**'
validate:
if: needs.files-changed.outputs.gocd == 'true'
needs: files-changed
name: Validate GoCD Pipelines
runs-on: ubuntu-latest
validate:
if: needs.files-changed.outputs.gocd == 'true'
needs: files-changed
name: Validate GoCD Pipelines
runs-on: ubuntu-latest

# required for google auth
permissions:
contents: "read"
id-token: "write"
# required for google auth
permissions:
contents: "read"
id-token: "write"

steps:
- uses: actions/checkout@v3
- id: 'auth'
uses: google-github-actions/auth@v1
with:
workload_identity_provider: 'projects/868781662168/locations/global/workloadIdentityPools/prod-github/providers/github-oidc-pool'
service_account: '[email protected]'
token_format: 'id_token'
id_token_audience: '610575311308-9bsjtgqg4jm01mt058rncpopujgk3627.apps.googleusercontent.com'
id_token_include_email: true
- uses: getsentry/action-gocd-jsonnet@v1
with:
jb-install: true
jsonnet-dir: gocd/templates
generated-dir: gocd/generated-pipelines
- uses: getsentry/action-validate-gocd-pipelines@v1
with:
configrepo: seer__main
gocd_access_token: ${{ secrets.GOCD_ACCESS_TOKEN }}
google_oidc_token: ${{ steps.auth.outputs.id_token }}
steps:
- uses: actions/checkout@v4
- id: "auth"
uses: google-github-actions/auth@v1
with:
workload_identity_provider: "projects/868781662168/locations/global/workloadIdentityPools/prod-github/providers/github-oidc-pool"
service_account: "[email protected]"
token_format: "id_token"
id_token_audience: "610575311308-9bsjtgqg4jm01mt058rncpopujgk3627.apps.googleusercontent.com"
id_token_include_email: true
- uses: getsentry/action-gocd-jsonnet@v1
with:
jb-install: true
jsonnet-dir: gocd/templates
generated-dir: gocd/generated-pipelines
- uses: getsentry/action-validate-gocd-pipelines@v1
with:
configrepo: seer__main
gocd_access_token: ${{ secrets.GOCD_ACCESS_TOKEN }}
google_oidc_token: ${{ steps.auth.outputs.id_token }}

0 comments on commit 43b0c2e

Please sign in to comment.