Skip to content

Commit

Permalink
minor yaml updates
Browse files Browse the repository at this point in the history
Change-Id: I9e1987c1c23706cdb4f889be548d6acde8e65a53
  • Loading branch information
cooljeanius committed Oct 1, 2024
1 parent 4a9c8e0 commit b680d9a
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
30 changes: 30 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,42 @@ updates:
directory: "/src/zlib/contrib/java/jzlib-1.1.2"
schedule:
interval: "weekly"
labels:
- enhancement
groups:
maven:
patterns:
- "*"
- package-ecosystem: "nuget"
directory: "/src/zlib/contrib/dotzlib/DotZLib"
schedule:
interval: "weekly"
labels:
- enhancement
groups:
nuget:
patterns:
- "*"
- package-ecosystem: "gomod"
directory: "/src/gdb/testsuite/gdb.go"
schedule:
interval: "weekly"
labels:
- enhancement
groups:
gomod:
patterns:
- "*"
- package-ecosystem: "pip"
directory: "/src/gdb"
schedule:
interval: "weekly"
labels:
- enhancement
groups:
pip:
patterns:
- "*"
- package-ecosystem: "bundler"
directory: "/src/gdb/ruby"
schedule:
Expand All @@ -46,6 +70,12 @@ updates:
directory: "/"
schedule:
interval: "weekly"
labels:
- enhancement
groups:
gradle:
patterns:
- "*"
- package-ecosystem: "npm"
directory: "/src/texinfo/js"
schedule:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/bandit.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
# .github/workflows/bandit.yml: bandit workflow for apple-gdb-1824
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
Expand All @@ -23,7 +24,7 @@ on:
- autofix/alert-*
- ruff_unsafe
pull_request:
# The branches below must be a subset of the branches above
# The branches below must be a subset of the branches above:
branches:
- master
- main
Expand All @@ -37,7 +38,7 @@ jobs:
bandit:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # to upload SARIF results
security-events: write # for workflow to upload SARIF results
actions: read # only required for private repos to get Action run status

runs-on: ubuntu-latest
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,19 +235,26 @@ jobs:
if test -x "$(which npx)"; then \
pushd src/texinfo/js || exit; \
(npx eslint -c build-aux/eslint.json info.js -f unix) || (npx tsc --allowJs --checkJS --noEmit --lib dom,es2017 info.js) || (npx uglifyjs info.js -o info.min.js --mangle --compress) || (npx modernizr -c build-aux/modernizr.json) || (npx esparse info.js info.js.json) || (npx esvalidate info.js); \
if test -e info.js && test ! -e info.js.json; then \
(npx esparse info.js info.js.json) || (npx esvalidate info.js); \
elif test -r info.js.json && test -w /dev/stdout; then \
stat info.js.json || echo "info.js.json"; \
elif test -r info.min.js && test -x "$(which du)"; then \
stat info.min.js && du info.min.js; \
fi; \
sync && echo "Done with texinfo javascript."; \
popd || exit; \
fi; \
elif test ${{ matrix.language }} == 'go' && test -x "$(which go)"; then \
if test -x "$(which staticcheck)"; then \
sleep && which -a staticcheck && sleep 1; \
sync && which -a staticcheck && sleep 1; \
(find . -name '*.go' -print0 | xargs -0 staticcheck) || \
statticcheck; \
elif test -x "$(which revive)"; then \
sleep && which -a revive && sleep 1; \
sync && which -a revive && sleep 1; \
(find . -name '*.go' -print0 | xargs -0 revive) || revive; \
elif test -x "$(which gocritic)"; then \
sleep && which -a gocritic && sleep 1; \
sync && which -a gocritic && sleep 1; \
(find . -name '*.go' -print0 | xargs -0 gocritic) || gocritic; \
elif test -x "$(which golangci-lint)"; then \
sync && which -a golangci-lint && sleep 1; \
Expand All @@ -259,7 +266,7 @@ jobs:
elif test -x "$(which actionlint)"; then \
sync && actionlint -verbose && sleep 1; \
else \
sync && echo "no linters found for go." && sleep 1; \
sync && echo "no linters found for go ($(which go))." && sleep 1; \
fi; \
elif test ${{ matrix.language }} == 'python' && test -x "$(which python)"; then \
sync && which -a pylint && which -a flake8 && which -a black; \
Expand All @@ -273,13 +280,14 @@ jobs:
sync && echo "skipping yamllint..."; \
fi; \
if test -x "$(which autopep8)"; then \
sync && stat "$(which autopep8)" && sleep 1; \
sync && stat "$(which autopep8)" && autopep8 --version && sleep 1; \
else \
sync && echo "skipping autopep8..."; \
fi; \
elif test ${{ matrix.language }} == 'csharp' && test -x "$(which yamllint)"; then \
sync && which -a yamllint && sleep 1; \
yamllint .github/codeql/extensions/apple-gdb-1824-csharp/codeql-pack.yml; \
stat "$(which csc)" || stat "$(which mcs)" || which -a dotnet; \
sync && echo "TODO: find a proper linter for csharp…" && sleep 1; \
else \
echo "unhandled case for syntax check step (matrix.language is ${{ matrix.language }})"; \
Expand Down

0 comments on commit b680d9a

Please sign in to comment.