From f321ae966c9ae00ec4a6ec775835715aac4efdaf Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Wed, 6 Mar 2024 08:24:49 -0500 Subject: [PATCH] Upgrade GitHub Actions --- .github/ISSUE_TEMPLATE/bug.yml | 110 ++++++++++++++++----------------- .github/workflows/release.yml | 16 ++--- .github/workflows/test.yml | 10 +-- 3 files changed, 68 insertions(+), 68 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index 1529c5f..3d35b9a 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -2,66 +2,66 @@ name: 'Bug report' description: 'File a bug report' labels: ['bug'] body: -- type: 'markdown' - attributes: - value: |- - Thank you for filing an bug. Please complete the form below so we can triage, reproduce, and fix your issue. + - type: 'markdown' + attributes: + value: |- + Thank you for filing an bug. Please complete the form below so we can triage, reproduce, and fix your issue. -- id: 'tldr' - type: 'textarea' - attributes: - label: 'TL;DR' - description: 'Describe the bug in 1-2 sentences.' - validations: - required: true + - id: 'tldr' + type: 'textarea' + attributes: + label: 'TL;DR' + description: 'Describe the bug in 1-2 sentences.' + validations: + required: true -- id: 'expected_behavior' - type: 'textarea' - attributes: - label: 'Expected behavior' - description: 'What did you expect to happen?' + - id: 'expected_behavior' + type: 'textarea' + attributes: + label: 'Expected behavior' + description: 'What did you expect to happen?' -- id: 'observed_behavior' - type: 'textarea' - attributes: - label: 'Observed behavior' - description: 'What happened instead?' + - id: 'observed_behavior' + type: 'textarea' + attributes: + label: 'Observed behavior' + description: 'What happened instead?' -- id: 'log_output' - type: 'textarea' - attributes: - label: 'Debug log output' - description: 'Paste the debug log output here. See https://github.com/GoogleCloudPlatform/gcr-cleaner#Debugging for more information.' - render: 'text' - -- id: 'mode' - type: 'dropdown' - attributes: - label: 'How are you running gcr-cleaner?' - options: - - 'CLI' - - 'Server' - validations: - required: true + - id: 'log_output' + type: 'textarea' + attributes: + label: 'Debug log output' + description: 'Paste the debug log output here. See https://github.com/GoogleCloudPlatform/gcr-cleaner#Debugging for more information.' + render: 'text' + - id: 'mode' + type: 'dropdown' + attributes: + label: 'How are you running gcr-cleaner?' + options: + - 'CLI' + - 'Server' + validations: + required: true + - id: 'version' -- id: 'version' - type: 'input' - attributes: - label: 'gcr-cleaner version' - description: 'Version of gcr-cleaner. If using the CLI, run `gcr-cleaner -v`. If using the server, check the debug logs or provide the container SHA' - validations: - required: true + type: 'input' + attributes: + label: 'gcr-cleaner version' + description: 'Version of gcr-cleaner. If using the CLI, run `gcr-cleaner -v`. If using the server, check the debug logs or provide the container SHA' + validations: + required: true + - id: 'environment' -- id: 'environment' - type: 'textarea' - attributes: - label: 'Environment' - description: 'Provide as much information about your environment as possible. If you are using gcr-cleaner as a CLI, include local operating system information. If you are running gcr-cleaner as a service, describe the deployment topology, permissions, and runtime.' - validations: - required: true + type: 'textarea' + attributes: + label: 'Environment' + description: 'Provide as much information about your environment as possible. If you are using gcr-cleaner as a CLI, include local operating system information. If you are running gcr-cleaner as a service, describe the deployment topology, permissions, and runtime.' + validations: + required: true + - id: 'additional' -- id: 'additional' - type: 'textarea' - attributes: - label: 'Additional information' + type: 'textarea' + attributes: + label: 'Additional information' + description: 'Is there anything else you think we should know?' description: 'Is there anything else you think we should know?' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b306aa1..85bc7bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,41 +13,41 @@ jobs: release: runs-on: 'ubuntu-latest' steps: - - uses: 'docker/setup-qemu-action@v2' + - uses: 'docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3' # ratchet:docker/setup-qemu-action@v3 - - uses: 'actions/checkout@v3' + - uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4 with: fetch-depth: 0 - - uses: 'actions/setup-go@v3' + - uses: 'actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491' # ratchet:actions/setup-go@v5 with: go-version-file: 'go.mod' - - uses: 'docker/login-action@v2' + - uses: 'docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d' # ratchet:docker/login-action@v3 with: registry: 'asia-docker.pkg.dev' username: '_json_key' password: '${{ secrets.GOOGLE_CREDENTIALS }}' - - uses: 'docker/login-action@v2' + - uses: 'docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d' # ratchet:docker/login-action@v3 with: registry: 'europe-docker.pkg.dev' username: '_json_key' password: '${{ secrets.GOOGLE_CREDENTIALS }}' - - uses: 'docker/login-action@v2' + - uses: 'docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d' # ratchet:docker/login-action@v3 with: registry: 'us-docker.pkg.dev' username: '_json_key' password: '${{ secrets.GOOGLE_CREDENTIALS }}' - id: 'import_gpg' - uses: 'crazy-max/ghaction-import-gpg@v5' + uses: 'crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4' # ratchet:crazy-max/ghaction-import-gpg@v6 with: gpg_private_key: '${{ secrets.GPG_PRIVATE_KEY }}' passphrase: '${{ secrets.GPG_PASSPHRASE }}' - - uses: 'goreleaser/goreleaser-action@v3' + - uses: 'goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8' # ratchet:goreleaser/goreleaser-action@v5 with: version: 'latest' args: 'release --rm-dist' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7e13923..fdaf98a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,10 +18,10 @@ jobs: runs-on: 'ubuntu-latest' steps: - - uses: 'actions/checkout@v3' + - uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4 - - uses: 'actions/setup-go@v3' - with: - go-version-file: 'go.mod' + - uses: 'actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491' # ratchet:actions/setup-go@v5 + with: + go-version-file: 'go.mod' - - run: 'make test' + - run: 'make test'