Skip to content

Commit

Permalink
Move permissions to envs and use the same checkout than other Grafana…
Browse files Browse the repository at this point in the history
… repos
  • Loading branch information
spinillos committed Aug 1, 2024
1 parent af53444 commit f568491
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/set-envs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: set-env

permissions:
contents: read
id-token: write

runs:
using: 'composite'
steps:
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,11 @@ env:
GF_FEATURE_TOGGLES_ENABLE: 'renderAuthJWT'
GF_PATHS_PROVISIONING: '/drone/src/scripts/drone/provisioning'

permissions:
contents: read
id-token: write

jobs:
set-env:
runs-on: ubuntu-x64
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set environment variables
uses: ./.github/actions/set-envs
Expand All @@ -25,7 +21,7 @@ jobs:
image: byrnedo/alpine-curl:0.1.8

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: grabpl
run: |
Expand All @@ -40,7 +36,7 @@ jobs:
needs: grabpl

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: yarn-install
run: |
Expand Down Expand Up @@ -73,7 +69,7 @@ jobs:
needs: [set-env, yarn]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: security-scan
run: |
Expand All @@ -100,7 +96,7 @@ jobs:
needs: [set-env, yarn]

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: package-${{ matrix.packaging }}
run: . |
Expand Down

0 comments on commit f568491

Please sign in to comment.