Browse Source

[BRE-848] Adding permissions to test lint workflow (#404)

testing-branch
Andy Pixley 6 months ago committed by GitHub
parent
commit
64aff450b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/test-get-secrets.yml
  2. 3
      .github/workflows/test-lint-workflow.yml

4
.github/workflows/test-get-secrets.yml

@ -48,7 +48,9 @@ jobs:
uses: bitwarden/gh-actions/get-keyvault-secrets@main # TODO: Use ./get-keyvault-secrets for testing of local action changes uses: bitwarden/gh-actions/get-keyvault-secrets@main # TODO: Use ./get-keyvault-secrets for testing of local action changes
with: with:
keyvault: gh-gh-actions keyvault: gh-gh-actions
secrets: "test-secret-1,test-secret-2" secrets: "
test-secret-1,
test-secret-2"
- name: Azure Logout - name: Azure Logout
id: azure-logout id: azure-logout

3
.github/workflows/test-lint-workflow.yml

@ -4,6 +4,7 @@ on:
pull_request: pull_request:
paths: paths:
- "lint-workflow" - "lint-workflow"
- .github/workflows/test-lint-workflow.yml
push: push:
branches: branches:
- "main" - "main"
@ -13,6 +14,8 @@ jobs:
test-lint-workflow: test-lint-workflow:
name: Test Lint Workflow name: Test Lint Workflow
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
permissions:
contents: read
steps: steps:
- name: Checkout Branch - name: Checkout Branch
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Loading…
Cancel
Save