Update module github.com/hashicorp/go-retryablehttp to v0.7.7 [SECURITY] - autoclosed #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI/CD for socket-exporter | |
on: | |
push: | |
branches: | |
- "main" | |
release: | |
types: [published] | |
pull_request: | |
branches: | |
- "main" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the project | |
run: | | |
make build | |
- name: Run the test | |
run: | | |
make test | |
socket-exporter-build-dev: | |
uses: celo-org/reusable-workflows/.github/workflows/[email protected] | |
name: Build us-west1-docker.pkg.dev/devopsre/dev-images/socket-exporter | |
needs: build | |
permissions: | |
contents: read | |
id-token: write | |
security-events: write | |
if: ${{ github.ref != 'refs/heads/main' && startsWith(github.ref, 'refs/pull/') }} | |
with: | |
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-socket-exporter/providers/github-by-repos' | |
service-account: '[email protected]' | |
artifact-registry: us-west1-docker.pkg.dev/devopsre/dev-images/socket-exporter | |
tags: test | |
context: . | |
file: ./Dockerfile | |
trivy: true | |
socket-exporter-build-main: | |
uses: celo-org/reusable-workflows/.github/workflows/[email protected] | |
name: Build us-west1-docker.pkg.dev/devopsre/socket-exporter/socket-exporter | |
needs: build | |
permissions: | |
contents: read | |
id-token: write | |
security-events: write | |
if: | | |
github.ref == 'refs/heads/main' | |
with: | |
workload-id-provider: 'projects/1094498259535/locations/global/workloadIdentityPools/gh-socket-exporter-main/providers/github-by-repos' | |
service-account: '[email protected]' | |
artifact-registry: us-west1-docker.pkg.dev/devopsre/socket-exporter/socket-exporter | |
tags: latest | |
context: . | |
file: ./Dockerfile | |
trivy: true | |
socket-exporter-build-tag: | |
uses: celo-org/reusable-workflows/.github/workflows/[email protected] | |
name: Build us-west1-docker.pkg.dev/devopsre/socket-exporter/socket-exporter tag | |
needs: build | |
permissions: | |
contents: read | |
id-token: write | |
security-events: write | |
if: | | |
startsWith(github.ref, 'refs/tags/') | |
with: | |
workload-id-provider: projects/1094498259535/locations/global/workloadIdentityPools/gh-socket-exporter-tag/providers/github-by-repos | |
service-account: '[email protected]' | |
artifact-registry: us-west1-docker.pkg.dev/devopsre/socket-exporter/socket-exporter | |
tags: ${{ github.ref_name }} | |
context: . | |
file: ./Dockerfile | |
trivy: true |