-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support: Error: Unable to resolve actions. Cannot access repositories 'peaceiris/actions-gh-pages' #1083
Comments
Hi @peaceiris |
We must use the same declaration for the workflow file and allow list, I expect. When we pin a custom action in the allow list by a commit hash, we need to use the commit hash in our YAML workflow file. |
Ahh, it seems that we cannot override a policy managed by the enterprise. Could you ask the enterprise owners to add this action to the allow list using the commit hash? Note You might not be able to manage these settings if your organization has an overriding policy or is managed by an enterprise that has overriding policy. For more information, see "Disabling or limiting GitHub Actions for your organization" or "Enforcing policies for GitHub Actions in your enterprise." |
Hi, |
Oh, sorry. I have no more idea about this... Today, the official custom GitHub Action to deploy GitHub Pages is available. We can try it. |
Hi,
|
Also, we need the actions/upload-pages-artifact to upload our Here is an example workflow (not tested). name: Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: build_something
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "publish_dir"
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 |
I am trying to publish allure reports, and we want access to previous reports as well. I am trying to use the below action. name: Run tests and publish report
|
I have tried without gh-pages action and it is working fine.
|
Checklist
Describe your question
We are facing issues using this action on Github Enterprise.
Error: Unable to resolve actions. Cannot access repositories 'peaceiris/actions-gh-pages'. Enable access using Settings in the Action repository. See https://docs.github.com/[email protected]/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository for more information.
Relevant links
Public repository: YAML config: YAML workflow: - name: Get Allure history uses: actions/checkout@v3 if: always() continue-on-error: true with: ref: gh-pages path: gh-pages - name: Allure report action uses: simple-elf/allure-report-action@58e6590adf6d8f196a0d771bf8a00e6921086a62 if: always() with: allure_results: allure-report allure_history: allure-history keep_reports: 10 - name: Deploy Allure report to GitHub Pages uses: peaceiris/actions-gh-pages@v4 if: always() with: github_token: ${{ secrets.GHE_TOKEN }} publish_branch: gh-pages publish_dir: allure-history
Relevant log output
Getting action download info
Error: Unable to resolve actions. Cannot access repositories 'peaceiris/actions-gh-pages'. Enable access using Settings in the Action repository. See https://docs.github.com/[email protected]/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#allowing-access-to-components-in-an-internal-repository for more information.
Additional context.
No response
The text was updated successfully, but these errors were encountered: