Skip to content

Update module golang.org/x/crypto to v0.31.0 [SECURITY] #48

Update module golang.org/x/crypto to v0.31.0 [SECURITY]

Update module golang.org/x/crypto to v0.31.0 [SECURITY] #48

name: lint-test
on:
push:
permissions:
contents: read
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- uses: hadolint/[email protected]
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
- name: Install dependencies
run: go get .
- name: Test with the Go CLI
run: go test -v ./...
build-push:
needs: [lint-test]
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
id-token: write
steps:
- uses: 'actions/checkout@v4'
- name: Extract branch name
shell: bash
shell: bash

Check failure on line 40 in .github/workflows/lint-test-build-push.yml

View workflow run for this annotation

GitHub Actions / lint-test

Invalid workflow file

The workflow is not valid. .github/workflows/lint-test-build-push.yml (Line: 40, Col: 7): 'shell' is already defined
run: |-
BRANCH=$(echo "${GITHUB_REF#refs/heads/}" | sed 's/[^a-zA-Z0-9._-]//g' | awk '{print substr($0, length($0)-120)}')
echo "branch=$BRANCH" >> $GITHUB_OUTPUT
id: extract_branch
- name: Extract tag name
shell: bash
run: |-
t=$(echo ${GITHUB_SHA} | cut -c1-7)
echo "tag=$t" >> $GITHUB_OUTPUT
id: extract_tag
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: ${{ secrets.GCLOUD_OIDC_POOL }}
create_credentials_file: true
service_account: ${{ secrets.GSA }}
token_format: 'access_token'
- uses: 'docker/login-action@v3'
name: 'Docker login'
with:
registry: 'us-docker.pkg.dev'
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.access_token }}'
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
us-docker.pkg.dev/${{ secrets.GCLOUD_PROJECT }}/internal/rollout:${{steps.extract_branch.outputs.branch}}-${{steps.extract_tag.outputs.tag}}
us-docker.pkg.dev/${{ secrets.GCLOUD_PROJECT }}/internal/rollout:${{steps.extract_branch.outputs.branch}}