Skip to content

Commit

Permalink
ci: move permissions to prod only and always run lint workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfouquet committed Apr 17, 2024
1 parent 7b883e9 commit af2b56a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
on: [push]
env:
CLUSTER_NAME: Workflows
permissions:
id-token: write
contents: read

jobs:
main:
Expand All @@ -26,7 +21,6 @@ jobs:
./argo-linux-amd64 version
- name: Lint workflows
if: github.ref != 'refs/heads/master'
run: |
./argo-linux-amd64 lint --offline templates/ workflows/
Expand All @@ -39,6 +33,13 @@ jobs:
environment:
name: prod

permissions:
id-token: write
contents: read

env:
CLUSTER_NAME: Workflows

steps:
- uses: linz/action-typescript@9bf69b0f313b3525d3ba3116f26b1aff7eb7a6c0 # v3.1.0

Expand Down

0 comments on commit af2b56a

Please sign in to comment.