Skip to content

Commit

Permalink
UID2-2861 Update deprecated packages (#66)
Browse files Browse the repository at this point in the history
* Update github/codeql-action/upload-sarif@v2 to v3

* Use `kcc-UID2-2861-fix-github-warnings` for the changed actions

* Update docker/login-action@v2 to v3

* Update actions/checkout@v3 to v4

* Use $GITHUB_OUTPUT instead of set-output

* Update google-github-actions/setup-gcloud@v1 to v2

* Replace kcc-UID2-2861-fix-github-warnings with v2
  • Loading branch information
cYKatherine authored Feb 27, 2024
1 parent ba14bdc commit ba04102
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/shared-build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
Expand All @@ -36,7 +36,7 @@ jobs:
path: target/site/jacoco/*

- name: Vulnerability Scan
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2.4.0
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2
with:
scan_severity: HIGH,CRITICAL
failure_severity: CRITICAL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared-check-stable-dependency.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Resolve dependencies
run: mvn -B dependency:resolve
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
key: ${{ secrets.GPG_KEY }}

- name: Vulnerability Scan
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2.4.0
uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan_filesystem@v2
with:
scan_severity: HIGH,CRITICAL
failure_severity: CRITICAL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared-publish-docker-versioned.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
hide-progress: true

- name: Upload Trivy scan report to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: inputs.publish_vulnerabilities == 'true'
with:
sarif_file: 'trivy-results.sarif'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shared-publish-image-aws-ecr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout.
fetch-depth: 0
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/shared-run-e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,52 +87,52 @@ jobs:
id-token: write
steps:
- name: Log in to the Docker container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}

- name: Checkout full history
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Checkout uid2-core repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.core_branch }}
repository: IABTechLab/uid2-core
path: uid2-core

- name: Checkout uid2-optout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.optout_branch }}
repository: IABTechLab/uid2-optout
path: uid2-optout

- name: Checkout uid2-admin repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.admin_branch }}
repository: IABTechLab/uid2-admin
path: uid2-admin

- name: Checkout uid2-operator repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ inputs.operator_branch }}
repository: IABTechLab/uid2-operator
path: uid2-operator

- name: Checkout uid2-shared-actions repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: v2
repository: IABTechLab/uid2-shared-actions
path: uid2-shared-actions

- name: Checkout uid2-e2e repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: IABTechLab/uid2-e2e
path: uid2-e2e
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/shared-validate-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:

steps:
- name: Checkout full history
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout.
fetch-depth: 0
Expand All @@ -70,7 +70,7 @@ jobs:
echo "git_commit=$(git show --format="%h" --no-patch)" >> $GITHUB_OUTPUT
- name: Log in to the Docker container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: inputs.upload_vulnerabilities
with:
sarif_file: 'trivy-results.sarif'
Expand Down
4 changes: 2 additions & 2 deletions actions/build_scan_image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runs:
echo "git_commit=$(git show --format="%h" --no-patch)" >> $GITHUB_OUTPUT
- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
Expand Down Expand Up @@ -72,7 +72,7 @@ runs:
hide-progress: true

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: 'trivy-results.sarif'
Expand Down
4 changes: 2 additions & 2 deletions actions/prepare_gcp_metadata/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
access_token_lifetime: 1200s

- name: Set up Cloud SDK
uses: 'google-github-actions/setup-gcloud@v1'
uses: google-github-actions/setup-gcloud@v2

- name: Log in to the GCP Registry
uses: docker/login-action@v3
Expand All @@ -62,7 +62,7 @@ runs:
# Get the digest
IMAGE_HASH=$(docker inspect --format='{{index .RepoDigests 0}}' "${IMAGE_NAME}:${IMAGE_TAG}" | cut -d'@' -f2)
echo "::set-output name=image_hash::${IMAGE_HASH}"
echo "image_hash=${IMAGE_HASH}" >> $GITHUB_OUTPUT
- name: Prepare GCP enclave metadata
id: metadata
Expand Down
2 changes: 1 addition & 1 deletion actions/vulnerability_scan/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ runs:
hide-progress: true

- name: Upload Trivy scan report to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: inputs.publish_vulnerabilities == 'true'
with:
sarif_file: 'trivy-results.sarif'
Expand Down
2 changes: 1 addition & 1 deletion actions/vulnerability_scan_filesystem/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ runs:
hide-progress: true

- name: Upload Trivy scan report to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
if: inputs.publish_vulnerabilities == 'true'
with:
sarif_file: 'trivy-results.sarif'
Expand Down

0 comments on commit ba04102

Please sign in to comment.