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
{{ message }}
Repository navigation
Commit 76bc292
Browse filesBrowse the repository at this point in the historyBrowse files
# Resolves code-scanning availability at runtime so the analysis skips cleanly (green) where no Advanced Security seat is licensed, and starts automatically once a repository becomes public or gains a seat.
29
29
scanning-availability:
30
30
name: Resolve code scanning availability
31
31
if: >-
@@ -48,29 +48,27 @@ jobs:
48
48
)
49
49
runs-on: ubuntu-24.04
50
50
permissions:
51
-
contents: read# Reads repository metadata to resolve availability.
51
+
contents: read
52
52
outputs:
53
53
enabled: ${{ steps.resolve.outputs.enabled }}
54
54
steps:
55
55
- name: Resolve availability
56
56
id: resolve
57
57
env:
58
58
GH_TOKEN: ${{ github.token }}
59
-
# Manual opt-in (CODE_SCANNING_ENABLED='true') for a seated private/internal repository whose seat status the workflow token cannot read.
60
59
FORCE_ENABLED: ${{ vars.CODE_SCANNING_ENABLED }}
61
60
run: |
62
61
set -euo pipefail
63
-
# Visibility is always readable; the security-and-analysis block is admin-token-only, so treat a missing value as unknown.
64
62
visibility="$(gh api "/repos/${GITHUB_REPOSITORY}" --jq '.visibility' 2>/dev/null || echo unknown)"
0 commit comments