You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The top-level permissions must be weak as they are referenced by all jobs.
210
-
permissions=$(yq -c '.permissions'"${workflow}")
211
-
case"${permissions}"in
212
-
'{"contents":"read"}' | '{"contents":"none"}') ;;
213
-
null) error "${workflow}: top level permissions not found; it must be 'contents: read' or weaker permissions" ;;
214
-
*) error "${workflow}: only 'contents: read' and weaker permissions are allowed at top level; if you want to use stronger permissions, please set job-level permissions" ;;
null) error "${workflow}: top level permissions not found; it must be 'contents: read' or weaker permissions" ;;
239
+
*) error "${workflow}: only 'contents: read' and weaker permissions are allowed at top level; if you want to use stronger permissions, please set job-level permissions" ;;
240
+
esac
241
+
# Make sure the 'needs' section is not out of date.
242
+
if grep -q '# tidy:needs'"${workflow}"&&! grep -Eq '# *needs: \['"${workflow}";then
0 commit comments