Browse Source

All workflows - Update 'master' to 'main' for any actions in the gh-actions repository (#207)

pull/206/head
Vince Grassia 2 years ago committed by GitHub
parent
commit
a497efc0aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      .github/workflows/test-download-artifacts.yml
  2. 2
      .github/workflows/test-release-version-check.yml
  3. 4
      .github/workflows/workflow-linter.yml
  4. 2
      get-keyvault-secrets/README.md
  5. 2
      setup-docker-trust/action.yml

10
.github/workflows/test-download-artifacts.yml

@ -31,10 +31,10 @@ jobs: @@ -31,10 +31,10 @@ jobs:
echo $GITHUB_SHA
download-master:
name: Download master
download-main:
name: Download main
runs-on: ubuntu-22.04
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
@ -45,7 +45,7 @@ jobs: @@ -45,7 +45,7 @@ jobs:
workflow: upload-test-artifacts.yml
artifacts: artifact
path: artifact
branch: master
branch: main
- name: Test
run: |
@ -81,7 +81,7 @@ jobs: @@ -81,7 +81,7 @@ jobs:
download-pr:
name: Download Pull Request
runs-on: ubuntu-22.04
if: github.ref != 'refs/heads/master'
if: github.ref != 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

2
.github/workflows/test-release-version-check.yml

@ -7,7 +7,7 @@ on: @@ -7,7 +7,7 @@ on:
- "release-check-version"
push:
branches:
- "master"
- "main"
workflow_dispatch:
inputs: {}

4
.github/workflows/workflow-linter.yml

@ -32,7 +32,7 @@ jobs: @@ -32,7 +32,7 @@ jobs:
- name: Workflow Lint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: bitwarden/gh-actions/lint-workflow@master
uses: bitwarden/gh-actions/lint-workflow@main
with:
workflows: ${{ steps.changed-workflows.outputs.modified-workflows }}
@ -49,5 +49,5 @@ jobs: @@ -49,5 +49,5 @@ jobs:
FILE: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
FILES=$(echo "${{ env.FILE }}")
curl -o $PWD/version-lint.sh https://raw.githubusercontent.com/bitwarden/gh-actions/master/.github/version-lint.sh
curl -o $PWD/version-lint.sh https://raw.githubusercontent.com/bitwarden/gh-actions/main/.github/version-lint.sh
chmod +x $PWD/version-lint.sh && $PWD/version-lint.sh $FILES

2
get-keyvault-secrets/README.md

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
With the Get Key Vault Secrets action, you can fetch secrets from an [Azure Key Vault](https://docs.microsoft.com/en-us/rest/api/keyvault/about-keys--secrets-and-certificates) instance and consume in your GitHub Action workflows.
The definition of this GitHub Action is in [action.yml](https://github.com/bitwarden/gh-actions/blob/master/get-keyvault-secrets/action.yml).
The definition of this GitHub Action is in [action.yml](https://github.com/bitwarden/gh-actions/blob/main/get-keyvault-secrets/action.yml).
Secrets fetched will be set as [outputs](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/metadata-syntax-for-github-actions#outputs) of the keyvault action instance and can be consumed in the subsequent actions in the workflow using the notation: `${{ steps.<Id-of-the-KeyVault-Action>.outputs.<Secret-Key> }}`. In addition, secrets are also set as environment variables. All the variables are automatically masked if printed to the console or to logs.

2
setup-docker-trust/action.yml

@ -28,7 +28,7 @@ runs: @@ -28,7 +28,7 @@ runs:
- name: Retrieve secrets
id: get-secrets
uses: bitwarden/gh-actions/get-keyvault-secrets@master
uses: bitwarden/gh-actions/get-keyvault-secrets@main
with:
keyvault: "${{ inputs.azure-keyvault-name }}"
secrets: "docker-password,

Loading…
Cancel
Save