1 parent 42717ca commit 400179aCopy full SHA for 400179a
1 file changed
.github/workflows/workflow-lint.yml
@@ -60,7 +60,9 @@ jobs:
60
run: |
61
set -euo pipefail
62
plan_job="$(awk '/^ plan:/{inside=1} /^ build:/{inside=0} inside' .github/workflows/opencode.yml)"
63
- ! grep -q 'id-token: write' <<<"$plan_job"
+ if grep -q 'id-token: write' <<<"$plan_job"; then
64
+ exit 1
65
+ fi
66
grep -q "USE_GITHUB_TOKEN: 'true'" .github/workflows/opencode.yml
67
grep -q 'Reauthorize commenter after approval' .github/workflows/opencode.yml
68
- name: Validate GitHub Actions workflows
0 commit comments