Fix GitHub API permission error by adding missing permissions to workflows #7299
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves the "Resource not accessible by integration" error that occurs when GitHub Actions workflows attempt to create issue comments or perform other write operations without proper permissions.
Problem
The error was caused by two workflow files missing explicit permission declarations:
.github/workflows/release-drafter.yml
.github/workflows/license.yml
These workflows use reusable workflows from external repositories (
Laravel-Lang/.github
andTheDragonCode/.github
) that need write permissions to perform operations like creating comments, updating files, or managing releases.Solution
Added
permissions: write-all
to both workflow files, bringing them in line with the established pattern used by other workflows in the repository that require write access.Changes
Before:
After:
Validation
This fix ensures that GitHub Actions workflows have the necessary permissions to interact with the GitHub API, preventing the "Resource not accessible by integration" error when creating issue comments or performing other repository operations.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/CarbonPHP/carbon-doctrine-types/zipball/18ba5ddfec8976260ead6e866180bd5d2f71aa1d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/CarbonPHP/carbon/zipball/76b5c07b8a9d2025ed1610e14cef1f3fd6ad2c24
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Laravel-Lang/config/zipball/0f6a41a1d5f4bde6ff59fbfd9e349ac64b737c69
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Laravel-Lang/locale-list/zipball/060475db218a97a54612163112b44782024d79c1
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Laravel-Lang/locales/zipball/8c1d2383ced70a919b3c2f430589be6c81663087
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Laravel-Lang/native-country-names/zipball/70eba5c3b7a4035da085123a81c076e52367b30c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Laravel-Lang/native-currency-names/zipball/b376c69778be7184f7292cb92424ac7d7415d55d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Laravel-Lang/native-locale-names/zipball/38278ef43fb3460c9fb7a056ac2e8043e4faa963
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Laravel-Lang/publisher/zipball/af47a0807f753818d72808250a1166e98172047c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/Stichoza/google-translate-php/zipball/2891310296cc115786d7c135a47a4ed53cd38df1
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/TheDragonCode/codestyler/zipball/f13acbe2cba7a1c9085fafd986e044215848596d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/TheDragonCode/contracts/zipball/c21ea4fc0a399bd803a2805a7f2c989749083896
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/TheDragonCode/pretty-array/zipball/b94034d92172a5d14a578822d68b2a8f8b5388e0
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/TheDragonCode/support/zipball/ab9b657a307e75f6ba5b2b39e1e45207dc1a065a
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/archtechx/enums/zipball/81375b71c176f680880a95e7448d84258cfb5c72
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/ergebnis/composer-normalize/zipball/ed24b9f8901f8fbafeca98f662eaca39427f0544
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/ergebnis/json-normalizer/zipball/91b9914b13937926d3b1916fc72475703ce42156
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/ergebnis/json-pointer/zipball/cf3301710c99b54b844426c9cc46037d264fdf70
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/ergebnis/json-printer/zipball/fe48d523392ab885bf581eb57f61526dcde44fbc
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/ergebnis/json-schema-validator/zipball/0c8349baba70fd2449b799bc73650985c27ed321
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/ergebnis/json/zipball/fc4f1bdac2d54a3050dca16ef1fe16ae50993f7d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/guzzle/guzzle/zipball/7b2f29fe81dc4da0ca0ea7d42107a0845946ea77
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/guzzle/psr7/zipball/c2270caaabe631b3b44c85f99e5a04bbb8060d16
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/bus/zipball/774ff2a22a93643d94bae8aad74fdc39a8c7084c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/collections/zipball/d8bdd65850b99ac4f7ebee1a49ad678a6740bec9
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/conditionable/zipball/ec677967c1f2faf90b8428919124d2184a4c9b49
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/config/zipball/06c8e1dc8fc890562eab7609d6454aa98f49da5c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/console/zipball/4e70ad2ddbeee0118332cb72ed6234cc82e46688
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/container/zipball/81d62ed4eef2d8d838cdf172aedcff2a78deaed0
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/contracts/zipball/458573a554b927e9594bb35baf9a7897dea03303
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/events/zipball/312d796c424b1bf08eecd6d883dd57d4c0ca7bbf
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/filesystem/zipball/d1c5bbb3b84649599def8ddd814c1f9543930055
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/macroable/zipball/e862e5648ee34004fa56046b746f490dfa86c613
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/pipeline/zipball/ff1e7672016def22c74f50c5a2d3858d6f5d4a96
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/support/zipball/dffee7182dc82a2b0b384e461059c9cad4272ed8
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/illuminate/view/zipball/ab0346c57d5e07719083bfe8cbe5c1822a16addd
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/jsonrainbow/json-schema/zipball/ce1fd2d47799bb60668643bc6220f6278a4c1d02
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/laravel/pint/zipball/0345f3b05f136801af8c339f9d16ef29e6b4df8a
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/laravel/prompts/zipball/86a8b692e8661d0fb308cec64f3d176821323077
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/localheinz/diff/zipball/ec413943c2b518464865673fd5b38f7df867a010
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/marc-mabe/php-enum/zipball/7159809e5cfa041dca28e61f7f7ae58063aae8ed
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/nette/schema/zipball/da801d52f0354f70a638673c4a0f04e16529431d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/nette/utils/zipball/c930ca4e3cf4f17dcfb03037703679d2396d2ede
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/nunomaduro/termwind/zipball/dfa08f390e509967a15c22493dc0bac5733d9123
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/environment/zipball/24a711b5c916efc6d6e62aa65aa2ec98fef77f68
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/exporter/zipball/76432aafc58d50691a00d86d0632f1217a47b688
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/global-state/zipball/570a2aeb26d40f057af686d63c4e99b075fb6cbc
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/type/zipball/e549163b9760b8f71f191651d22acf32d56d6d4d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/sebastianbergmann/version/zipball/3e6ccf7657d4f0a59200564b08cead899313b53c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/clock/zipball/b81435fbd6648ea425d1ee96a2d8e68f4ceacd24
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/console/zipball/5f360ebc65c55265a74d23d7fe27f957870158a1
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/error-handler/zipball/0b31a944fcd8759ae294da4d2808cbc53aebd0c3
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/finder/zipball/2a6614966ba1074fa93dae0bc804227422df4dfe
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/http-kernel/zipball/6ecc895559ec0097e221ed2fd5eb44d5fede083c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-php80/zipball/0cc9dd0f17f61d8131e7df6b84bd344899fe2608
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-php83/zipball/17f6f9a6b1735c0f163024d959f700cfbc5155e5
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/polyfill-php84/zipball/d8ced4d875142b6a7426000426b8abc631d6b191
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/process/zipball/40c295f2deb408d5e9d2d32b8ba1dd61e36f05af
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/string/zipball/42f505aff654e62ac7ac2ce21033818297ca89ca
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/translation-contracts/zipball/df210c7a2573f1913b2d17cc95f90f53a73d8f7d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/symfony/translation/zipball/81b48f4daa96272efcce9c7a6c4b58e629df3c90
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/thephpleague/commonmark/zipball/10732241927d3971d28e7ea7b5712721fa2296ca
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)https://api.github.com/repos/voku/portable-ascii/zipball/b1d923f88091c6bf09699efcd7c8a1b1bfd7351d
/usr/bin/php8.3 -n -c /tmp/DkSlPt /usr/bin/composer install --no-interaction
(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.